-
Notifications
You must be signed in to change notification settings - Fork 668
add info about ErrorWrapper object #476
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
Comments
I'm not sure there's value in telling users about the error wrapper. It's purpose is to handle cases when an element isn't found, and it has the same methods as the Wrapper. What notes about the ErrorWrapper would you find useful? |
@eddyerburgh thanks for the reply. Maybe enough to add something like this notes for
Because I expect that |
That's a reasonable assumption, but the docs do say find returns a Wrapper object. I don't think we need to add more detail than that. |
Thanks! |
Hi guys, sorry to comment on a closed issue, but I have just run into the same issue. Calling find returns ErrorWrapper instead of the expected false. I needed to Google around to findout why. What is the harm of clarifying this in the documentation? It is not obvious that it can be queried with |
Ok, we could add a sentence in the |
I prefer naming methods like:
So I am missing the See #1298 |
Agreee - running into this as well. exists returns true, even when the actual component isn't found. |
Testing this with This can also be found in the sourcecode:
|
What problem does this feature solve?
As I can see
find
method returnsWrapper
object if element found orErrorWrapper
object if not element found. Both are implementBaseWrapper
.I think it will be good to add this information in order to do more clear info about returning type of
find
.Also, may be create page for
ErrorWrapper
object.What does the proposed API look like?
to something like
The text was updated successfully, but these errors were encountered: