Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execute_cdp_cmd not working with serverless-chrome #324

Open
rebelnn opened this issue Dec 28, 2021 · 0 comments
Open

execute_cdp_cmd not working with serverless-chrome #324

rebelnn opened this issue Dec 28, 2021 · 0 comments

Comments

@rebelnn
Copy link

rebelnn commented Dec 28, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant