0

I am using Serenity BDD for automation testing of four browsers (Chrome, Firefox, Edge, and Safari). I have configured serenity.conf with browser specific configuration for Chrome and Firefox so that these browsers accept invalid SSL certificates during automation testing. However, when it comes to Safari browser I need to do the same type of configuration, but I cannot figure out how to do this and I can see no related doc.

The underlying Selenium classes seem to support an Accept SSL Certificates option.

Anyone know what this configuration should look like in serenity.conf?

Thanks.

1 Answer 1

0

it seems safari doesn't have a driver flag to stop it , you have to execute below javascript command

JavascriptExecutor js = (JavascriptExecutor)driver;


js.executeScript("CertificateWarningController.visitInsecureWebsiteWithTemporaryBypass()");
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.