Selenium2+python Automation 39-Questions about the interview "reprint"

Source: Internet
Author: User

Objective

Recently saw a group of small partners posted a set of interview questions, and recently job-hopping gold season, small series can not help but take a little time to summarize the next, the answer is not appropriate place to welcome you master Pat Brick pointing. How do I determine if an element exists in selenium? First of all, there is no such method in selenium, judging elements exist to write a method of their own. Elements exist in several forms, one is that the page has more than one element of the properties of the duplicate, this direct operation will be error; There is also a page-hidden element operation will also error judgment method reference this: Selenium2+python Automation 36-Judging element existence two, Can the elements of hidden or display = None in Selenium be located? Positioning is can be positioned to, but can not operate, it is possible to judge the element is_displayed () (I have not been inside this positioning in the end is a few meaning, as long as the elements on the page, I think can be positioned to, really not, small can crawl source selenium2+ Python Automation 37-Crawl page source code (PAGE_SOURCE), can not operate that is another matter) iii. how to ensure the success rate of operation elements in selenium? So how do I ensure that the element I clicked on must be clickable? One is the implicit wait: driver.implicitly_wait () The other is an explicit wait: webdriverwait () Wait a little longer refer to this article: selenium2+ Python Automation 38-Display Wait (webdriverwait)

Selenium2+python Automation 39-Questions about the interview "reprint"

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.