Open rebelnn opened 2 years ago
Hi,
I'm running Selenium 3.141.0 and serverless-chrome in AWS Lambda and getting the following error message:
'WebDriver' object has no attribute 'execute_cdp_cmd'
Here are my settings:
chrome_options = webdriver.ChromeOptions() chrome_options.add_argument('--headless') chrome_options.add_argument('--no-sandbox') chrome_options.add_argument('--disable-gpu') chrome_options.add_argument('--window-size=1280x1696') chrome_options.add_argument('--user-data-dir=/tmp/user-data') chrome_options.add_argument('--hide-scrollbars') chrome_options.add_argument('--enable-logging') chrome_options.add_argument('--log-level=0') chrome_options.add_argument('--v=99') chrome_options.add_argument('--single-process') chrome_options.add_argument('--data-path=/tmp/data-path') chrome_options.add_argument('--ignore-certificate-errors') chrome_options.add_argument('--homedir=/tmp') chrome_options.add_argument('--disk-cache-dir=/tmp/cache-dir') chrome_options.add_argument('user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36') chrome_options.binary_location = os.getcwd() + "/bin/headless-chromium"
Is Chrome Devtools Protocol embedded into serverless-chrome?
https://www.selenium.dev/selenium/docs/api/py/_modules/selenium/webdriver/chromium/webdriver.html#ChromiumDriver.execute_cdp_cmd
Hi,
I'm running Selenium 3.141.0 and serverless-chrome in AWS Lambda and getting the following error message:
'WebDriver' object has no attribute 'execute_cdp_cmd'
Here are my settings:
Is Chrome Devtools Protocol embedded into serverless-chrome?
https://www.selenium.dev/selenium/docs/api/py/_modules/selenium/webdriver/chromium/webdriver.html#ChromiumDriver.execute_cdp_cmd