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

Popular posts from this blog

Delphi: missing interface declarations for UI Automation methods -

php - how to change mysql_result($res, 0, "url"); to mysqli -

android - How to attach an image from an app to gmail -