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

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -