-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add small improvements #66
Conversation
wait_until_clickable: Wait until the element is clickable before | ||
clicking, or not (default `True`). | ||
|
||
""" | ||
if wait_until_clickable: | ||
self.wait_until_clickable() | ||
if scroll_to: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to change order of wait
and click
.
Consider case when button is not visible on a screen (need to scroll) and not clickable.
If wait
condition will fail, it would be nice to make a screenshot to investigate issue later. But screenshot won't show desired button because scroll not applied yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls update changelog)
There is often a situation when you need to add `[contains(., text)]` to an already ready locator, and for this you have to use `extend_query`. So we decided to put it into a separate method.
8d4f01c
to
458ba3c
Compare
4855d4a
to
e114515
Compare
PageDidNotLoadedError
XPathLocator