testing - Prevent accidental close of browser window when there are multiple alerts in selenium with python -


i'm writing test using selenium python. i'm using pydev extension in eclipse.

i'm testing user management system , of course there method test access permissions. since there lot of links in our system , in cases may links unavailable user, there lot of alerts let user know not having permission access.

unfortunately, firefox closes browser after facing continuous alerts , test exit.

i want prevent firefox type of behavior , handle alerts self. don't want use check-box on firefox's alert boxes says "prevent..."; need these alerts , check existence of alert in order test functionality of system.

that great if knows way web-drivers in code, not manually in browser; since code run in other browsers , other servers.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -