Turn Python+selenium use Switch_to_alert to appear strange anomalies

Source: Internet
Author: User

If Switch_to_alert does not work, the most important problem is that more than 1 browsers are turned on, causing alert to crawl. And in the use of Switch_to_alert time will be longer, need to wait a while to complete the work of accept and so on.

The reason is that because multiple browsers are turned on to be unable to locate exactly which browser, such as a browser that has two Firefox at the same time, Webdriver cannot locate the browser to be tested and will not be able to get to the alert window on the test browser.

Turn Python+selenium use Switch_to_alert to appear strange anomalies

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.