Есть отличная удаленная работа для php+codeception+jenkins+allure+docker спецов. 100% remote! Присоединиться к проекту

Не могу запустить элементарный пример, ругается на сертификат

selenide
Теги: #<Tag:0x00007f7b61835e30>

(Роман Александрович) #1

Привет! Пытаюсь открыть страницу:

System.setProperty("webdriver.gecko.driver","D:/geckodriver.exe");
open("https://github.com/"); 

Но не выходит, валится с ошибкой:

Exception in thread "main" org.openqa.selenium.WebDriverException: Reached error page: about:certerror?e=nssBadCert&u=https%3A//github.com/&s=badStsCert&c=UTF-8&f=regular&d=github.com%20%D0%B8%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D1%83%D0%B5%D1%82%20%D0%BD%D0%B5%D0%B4%D0%B5%D0%B9%D1%81%D1%82%D0%B2%D0%B8%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9%20%D1%81%D0%B5%D1%80%D1%82%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%82%20%D0%B1%D0%B5%D0%B7%D0%BE%D0%BF%D0%B0%D1%81%D0%BD%D0%BE%D1%81%D1%82%D0%B8.%0A%0A%D0%9A%20%D1%81%D0%B5%D1%80%D1%82%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%82%D1%83%20%D0%BD%D0%B5%D1%82%20%D0%B4%D0%BE%D0%B2%D0%B5%D1%80%D0%B8%D1%8F%2C%20%D1%82%D0%B0%D0%BA%20%D0%BA%D0%B0%D0%BA%20%D1%81%D0%B5%D1%80%D1%82%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%82%20%D0%B5%D0%B3%D0%BE%20%D0%B8%D0%B7%D0%B4%D0%B0%D1%82%D0%B5%D0%BB%D1%8F%20%D0%BD%D0%B5%D0%B8%D0%B7%D0%B2%D0%B5%D1%81%D1%82%D0%B5%D0%BD.%0A%D0%A1%D0%B5%D1%80%D0%B2%D0%B5%D1%80%20%D0%BC%D0%BE%D0%B3%20%D0%BD%D0%B5%20%D0%BE%D1%82%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D1%82%D1%8C%20%D1%81%D0%BE%D0%BE%D1%82%D0%B2%D0%B5%D1%82%D1%81%D1%82%D0%B2%D1%83%D1%8E%D1%89%D0%B8%D0%B5%20%D0%BF%D1%80%D0%BE%D0%BC%D0%B5%D0%B6%D1%83%D1%82%D0%BE%D1%87%D0%BD%D1%8B%D0%B5%20%D1%81%D0%B5%D1%80%D1%82%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%82%D1%8B.%0A%D0%9C%D0%BE%D0%B6%D0%B5%D1%82%20%D0%BF%D0%BE%D0%BD%D0%B0%D0%B4%D0%BE%D0%B1%D0%B8%D1%82%D1%8C%D1%81%D1%8F%20%D0%B8%D0%BC%D0%BF%D0%BE%D1%80%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D1%82%D1%8C%20%D0%B4%D0%BE%D0%BF%D0%BE%D0%BB%D0%BD%D0%B8%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9%20%D0%BA%D0%BE%D1%80%D0%BD%D0%B5%D0%B2%D0%BE%D0%B9%20%D1%81%D0%B5%D1%80%D1%82%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%82.%0A%0A%D0%9A%D0%BE%D0%B4%20%D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B8%3A%20%3Ca%20id%3D%22errorCode%22%20title%3D%22SEC_ERROR_UNKNOWN_ISSUER%22%3ESEC_ERROR_UNKNOWN_ISSUER%3C/a%3E%0A
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
System info: host: 'DESKTOP-96UN29O', ip: '192.168.56.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
selenide.url: https://github.com/
Capabilities [{rotatable=false, raisesAccessibilityExceptions=false, firefoxOptions={args=[], profile=UEsDBBQACAgIALG1fkkAAAAAAAAAAAAAAAAHAAAAdXN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vJb+hmEF8nxbQeH0nYoXZdTwfQa/1yLF4kYYgnRoPRmcH2hDANo9b8jLXXd303Fez6LgpY7JQ+i1zCftqJvcozfaPsRrF/9G0/LZ0cEoeORzutEwijrmjqHmfNSmfOwq9MrQFbNq+Br+960fzefzm/pRImhExxs5luNPln4nf/RChTVenlMJJm+89eQXcR36I+YxkVUiUOa1nVQZ3ouHtbxxt/R17pWE6kwdm0o/MiDcYODjDajVNpjsbywCF2Zp7aiY8qfbT9GLKbdP4HUEsHCI+wlV31AwAAzg0AAFBLAQIUABQACAgIALG1fkmPsJVd9QMAAM4NAAAHAAAAAAAAAAAAAAAAAAAAAAB1c2VyLmpzUEsFBgAAAAABAAEANQAAACoEAAAAAA==}, pageLoadStrategy=normal, appBuildId=20161123182536, version=50.0.1, platform=XP, proxy={}, command_id=1, specificationLevel=0, acceptSslCerts=false, processId=7888, browserVersion=50.0.1, platformVersion=10.0, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=firefox, takesScreenshot=true, takesElementScreenshot=true, platformName=windows_nt, firefox_profile=UEsDBBQACAgIALG1fkkAAAAAAAAAA...}]
selenide.baseUrl: http://localhost:8080

Что я делаю не так?


(Roy Obenon) #2

https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html
“D:\\geckodriver.exe”
может это поможет