Problems in the practice process of Selenium+python unittest

Source: Internet
Author: User

1. After the list selection, get the text content directly and get the value of the button that should be displayed after the selection.

2. After the value value with a space, you can use. Strip () to delete the front and back spaces to assert

3. Some values after the value need to convert the type to assert success

4. Problems with the checkbox and the traversal of the paging

Each time the checkbox is clicked or the page number is clicked, the pages are refreshed, the elements of the webelement are expired, and the For loop's traversal fails.

Error:

 is or the page has been refreshed

There is no solution at the moment, and the great God is in need of help

5. Using sublime software to write code, run the script and found that this error often occurs:

 not match no outer indentation level

A half-day error was found to be the space indent problem:

So check > Indent > Use spaces to indent, so you're done.

Later, you will continue to record the problems you have encountered ...

Problems in the practice process of Selenium+python unittest

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.