Skip to content

Using xvfb=True without Headless mode does not work with Docker  #2982

Closed
@Orbiszeus

Description

@Orbiszeus

Dear Michael,
I have seen other issues and read them as well, you have advised using xvfb=True for proxy reasons without the need of the Headless mode with the new update. However when I use here :

def menu_crawler(url, is_area):
    menu_items = []
    with SB(uc=True, xvfb=True, locale_code="tr") 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)

It is not opening the page with Headless=True at least it was opening the webpage (less secure for my crawler I know).

Raised Error looks like :

start error

 

X11 display failed! Will use regular xvfb!

 

Warning: uc_driver not found. Getting it now:

 

*** chromedriver to download = 127.0.6533.88 (Latest Stable) 

 

Downloading chromedriver-linux64.zip from:

https://storage.googleapis.com/chrome-for-testing-public/127.0.6533.88/linux64/chromedriver-linux64.zip ...

Download Complete!

 

Extracting ['chromedriver'] from chromedriver-linux64.zip ...

Unzip Complete!

Metadata

Metadata

Assignees

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeduplicateThe answer/solution already exists somewhere

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions