PythonHeadlessChrome icon indicating copy to clipboard operation
PythonHeadlessChrome copied to clipboard

using remote webdriver

Open liamcryan opened this issue 7 years ago • 1 comments

I'm trying to use a remote webdriver instead of the chrome webdriver...I made this change in driver_builder.py:

    # driver = Chrome(executable_path=driver_path, chrome_options=chrome_options)
    driver = Remote(
        command_executor='http://127.0.0.1:4444/wd/hub',
        desired_capabilities=chrome_options.to_capabilities())

Once execution gets to the 'command_result = driver.execute("send_command", params)' in the 'enable_download_in_headless_chrome' method I am running into an issue.

Here is some information: selenium.common.exceptions.WebDriverException: Message: POST /session/a2908a00-707a-4be3-97a1-c79aec8e0e1e/chromium/send_command Build info: version: '2.49.1', revision: '7203e46', time: '2016-01-21 17:35:35' System info: host: 'abc-Mac-mini', ip: '000.000.00.000', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.5', java.version: '9' Driver info: driver.version: unknown

I would appreciate any information you have on how to solve the driver.version: unknown problem. This "Issue" may not be directly related to your code, but I thought it was worth asking as you may have some insight.

Thanks.

liamcryan avatar Mar 02 '18 22:03 liamcryan

Hi, sorry that is likely due to some difference in the remote driver. You'd have to dig into the internals to see the problem.

shawnbutton avatar Mar 03 '18 13:03 shawnbutton