UNEXPECTED_ALERT_BEHAVIOUR using FirefoxOptions for selenium 3.11

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

UNEXPECTED_ALERT_BEHAVIOUR using FirefoxOptions for selenium 3.11

Sayedur Rahman

Previously we to UNEXPECTED_ALERT_BEHAVIOUR given below code was fine using DesireCapability.

                        DesiredCapabilities dc = new DesiredCapabilities();
dc.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.ACCEPT);

In Selenium 3.11 DesireCapability is depricated. ASking to use firefox option.

what would be the code for UNEXPECTED_ALERT_BEHAVIOUR with FirefoxOptions ?

I tried the following: (but didn't work.)
                 FirefoxOptions options = new FirefoxOptions();

Any one there to help?

You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/34ea694f-c29e-445b-aeb2-eceb214debab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.