-
Notifications
You must be signed in to change notification settings - Fork 51
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
Unable to set capabilities on Chrome WebDriver #156
Comments
Hi, I was searching for the same answer, I was able to update Chrome options with this: @pytest.fixture(scope='session')
def splinter_driver_kwargs():
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--ignore-ssl-errors=yes")
chrome_options.add_argument("--ignore-certificate-errors")
return {"options": chrome_options} Based on this: https://selenium-python.readthedocs.io/api.html#module-selenium.webdriver.chrome.webdriver and https://stackoverflow.com/a/60250587 |
@mdpdesign Where is |
Found it: |
Hi @aahamlin , does the reply from @mdpdesign solve your problem? Would any of you like to add this wonderful code snippet to docs, so we won't lose it? PRs accepted! |
@mpasternak - opened a PR - #167 |
I am trying to use
pytest-splinter
fixturessplinter_webdriver
andsplinter_driver_kwargs
to enable Chrome to run in Incognito mode and ignore certificate errors to enable testing from a local dev environment versus a hosted site with valid certs.I am unable to find the combination of arguments that make Chrome work, and conversely, make Firefox break.
When I do not use the fixtures and just create my own splinter Browser instance it works fine.
However, in my desired scenario, when
splinter_webdriver
returns "chrome" andsplinter_driver_kwargs
returns any of the following configurations, the invalid cert authority error has not been bypassed. Also, of note, attempting to override the capabilities for FireFox and force it to fail on the invalid certs also does not work.What are the recommended steps in this case?
Thanks.
The text was updated successfully, but these errors were encountered: