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

pytractor webdriver doesn't allow to bypass certificate errors #23

Open
lexadler opened this issue Sep 16, 2019 · 0 comments
Open

pytractor webdriver doesn't allow to bypass certificate errors #23

lexadler opened this issue Sep 16, 2019 · 0 comments

Comments

@lexadler
Copy link

lexadler commented Sep 16, 2019

Using pytractor with the latest version of Firefox I'm not able to bypass self-signed certificates errors with firefox_profile or capabilities. Neither this code

    from selenium import webdriver
    from pytractor.webdriver import Firefox, Chrome

    profile = webdriver.FirefoxProfile()
    profile.accept_untrusted_certs = True
    driver = Firefox(executable_path='../drivers/geckodriver', firefox_profile=profile)

nor this

    from selenium import webdriver
    from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
    from pytractor.webdriver import Firefox, Chrome

    desired_capabilities = DesiredCapabilities.FIREFOX
    desired_capabilities['acceptSslCerts'] = True
    desired_capabilities['acceptInsecureCerts'] = True
   driver = Firefox(executable_path='../drivers/geckodriver', capabilities=desired_capabilities)

won't work.

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