Home > other >  Python selenium met sign page jump to a new page, page begins directly is the alert script
Python selenium met sign page jump to a new page, page begins directly is the alert script

Time:09-17

Python selenium development process, meet a new sign page jump pages, pages directly the opening is the script of alert
How to locate alert element, switch_to. Alert error, how to locate the alert elements, and can get alert popup information
HTML page the following

 


<script language="javascript" & gt;
Alert (' account already exists, please fill out the other user name ');
window.close();
</script>

<body>

  • Related