Reputation: 20078
tried - get this error OpenQA.Selenium.WebDriverException: No response from server for url
driver.Navigate().GoToUrl("javascript:document.getElementById('overridelink').click()");
end edit
The website that needs to be tested has a self signed certificate. So Internet Explorer (8 in windows 7) shows the below message message and how this should be handle any leads?
The security certificate presented by this website was not issued by a trusted certificate authority. The security certificate presented by this website was issued for a different website's address.
if override the link by clicking "Continue to this website (no recommended)"
then it redirect the page and i get this window which says:
Do you want to view only the webpage content that was delivered securely? - with YES | NO button
and whether you click yes/no i get error message which says:
Unable to open the Internet site <site_name> Operation aborted
any help ?
Upvotes: 2
Views: 3116
Reputation: 2337
Try the below alternate solution, if the above "certificate installation" process is not helpful. In my case, it was not helpful because of some client restricted settings on my machine. So i used below lines in my Webdriver code.
driver.get(baseUrl");
driver.findElement(By.name("overridelink")).sendKeys(Keys.ENTER);
//The above line is for clicking "Continue to this website(not recommended)" link.
Upvotes: 0
Reputation: 4621
If you are using selenium rc..you can use -trustAllSSSlCertificates
option while starting the selenium server.
Upvotes: 1
Reputation: 14736
In the case of IE you should first manually install the certificate on your local machine and then use it. AFAIK there is no other way of circumventing this problem.
Upvotes: 1