selenium webdriver - How to setAcceptUntrustedCertificates for Safari. -


with version 2.30, selenium webdruiver has given in built support safari browser.

i want know how handle ssl certificates in safari (which installed on windows).

below piece of code tried not working:

desiredcapabilities capabilities = new desiredcapabilities();         capabilities.setcapability(capabilitytype.accept_ssl_certs, true);         capabilities.setbrowsername("safari");           driver = new safaridriver(capabilities);         driver.get("https://mydummysite"); 

i have countered same problem. seems safari browser using same certification mechanism internet explorer, , theoretically, can use install certification , should solve problem. instruction can found here

this did not work me, used autoit script click on continue button, compiled script exe , called test.

the script used:

winwait("[class:#32770]","",60)  winactivate("[class:#32770]","") send("{space}") 

baiscally, wait 60 seconds "safari can't verify identity of website" message, set window on focus , click on space bar button.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -