Since the Firefox has been updated to version 52, the version of selenium that we were using is incompatible. I am currently trying to upgrade it to 3.4.0. I've updated the dependency in the pom file, and I have set the property of the driver to the path of the geckodriver.exe. I have also explicitly set the Marionette Driver Capabilities.
System.setProperty("webdriver.gecko.driver", "/PathTo/geckodriver.exe");
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability("marionette", true);
WebDriver driver = new MarionetteDriver(capabilities);
When I try to run any of my tests I receive this error
ERROR:
1521473229499 geckodriver INFO geckodriver 0.20.0 (0ac3698a74a7b1a742682b8e704f1f418df827ed 2018-03-13) 1521473229515 geckodriver INFO Listening on 127.0.0.1:29701 1521473230061 mozrunner::runner INFO Running command: "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "-marionette" "-profile" "C:\Users\e743267\AppData\Local\Temp\rustmozprofile.TM6vvGmE8t6Z" 1521473236242 Marionette INFO Listening on port 2828 1521473298389 addons.productaddons ERROR Request failed certificate checks: [Exception... "Certificate checks failed. See previous errors for details." nsresult: "0x80070057 (NSERRORILLEGALVALUE)" location: "JS frame :: resource://gre/modules/CertUtils.jsm :: validateCert :: line 113" data: no]
Aucun commentaire:
Enregistrer un commentaire