I'm testing a web application using selenium. Here, I'm writing the selenium test in Javascript. But I couldn't find a way to automate SSL certs acceptance.
Using the profile class I tried doing something like this:
Is there anything I’m missing?
var profile = new firefox.Profile() profile.setAcceptUntrustedCerts(true)
var options = new firefox.Options().setProfile(profile)
var firefoxDriver = new web driver.Builder() .forBrowser(‘firefox’) .usingServer(‘http://127.0.0.1 :4444/wd/hub’) .setFirefoxOptions(options) .build()
firefoxDriver.get(url)
But this doesn't seems to work. Is there any way I can write a bash script(which I can call in my test) or is there any other way in Javascript that accept SSL certs?