Your connection is not secure - using Selenium.WebDriver v.3.6.0 + Firefox v.56

前端 未结 3 1346
温柔的废话
温柔的废话 2021-01-14 03:28

I\'m writing tests with Selenium + C# and I face an important issue because I didn\'t found solution when I test my site with secure connection (HT

3条回答
  •  遥遥无期
    2021-01-14 03:51

    It works for me for following settings (same as above):

    My env:

    win 7

    firefox 61.0.2 (64-bit)

    Selenium C# webdriver : 3.14.0

    geckodriver-v0.21.0-win32.zip

    ==============================

    FirefoxOptions options = new FirefoxOptions();

    options.BrowserExecutableLocation = @"C:\Program Files\Mozilla Firefox\firefox.exe";

    options.AcceptInsecureCertificates = true;

    new FirefoxDriver(RelativePath,options);

提交回复
热议问题