-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeduplicateThe answer/solution already exists somewhereThe answer/solution already exists somewherequestionSomeone is looking for answersSomeone is looking for answers
Description
I have currently built an application that runs on Linux Ubuntu that does not have a GUI and regarding this situation for full protection I am not using Headless Mode and adding incognito=True and also for X11 display for Linux machines I added : xvfb=True. However, when I run the program I get this --> start error X11 display failed! Will use regular xvfb!
My code:
menu_items = []
with SB(uc=True, xvfb=True, incognito=True) as sb:
sb.driver.uc_open_with_reconnect(url, 20)
try:
print("Locale Code: " +str(sb.get_locale_code()))
# print(sb.save_screenshot_to_logs(name=None, selector=None, by="css selector"))
print("Page title: " + str(sb.get_title()))
sb.sleep(5)
sb.uc_gui_handle_cf()
sb.sleep(5)
Metadata
Metadata
Assignees
Labels
UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeduplicateThe answer/solution already exists somewhereThe answer/solution already exists somewherequestionSomeone is looking for answersSomeone is looking for answers