About the assertion in selenium URL get error Resolution

Source: Internet
Author: User

Tags: geturl selenium

In judging the URL, I use Assertequals (expected value, Driver.getcurrenturl ()) to assert, but always get the URL to judge when the spirit is not the spirit, because this is to obtain a time difference, If you use the wait page element to get the URL can not be effectively resolved, and later I write dead wait time to get the correct thread.sleep (), I hope to help the people who encounter this problem, but also recorded

This article is from the "12380959" blog, please be sure to keep this source http://12390959.blog.51cto.com/12380959/1893345

About the assertion in selenium URL get error Resolution

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.

Tags Index: