selenium - How to accept all the alerts of a website? -
While browsing a webpage, I sometimes get alerts, how can I accept every warning that appears? I do not know what the number of alerts given in the given webpage is.
You can set capabilities. However, certain capabilities can not be applied to certain browsers, test it yourself (as my knowledge is, it only works with FF).
abilities .setability (capacit type. UNEXPECTED_ALERT_BEHAVIOUR, accepting unexpected AlertBavier);
Comments
Post a Comment