-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Misleading error message on isElementPresent
with invalid selector in ptor.isElementPresent
call
#1068
Comments
This is related to #1021. Basically webdriver treats the ElementFinder object as a promise because it has a
However, since this is just an annoyance and not a blocker, I'm trying to wait for this first. #1066 |
We also got "TypeError: Unimplemented function: "isPending" when waiting for an element from Firefox. The fix of this issue is important to us. |
+1. Just ran into this issue myself. (the unimplemented function isPending error, that is) |
committed with 0da1e0c. Should be fixed. Can you try it again (against master)? |
I'm cleaning up the issues by closing old ones that haven't had responses in a while. Please open a new issue if you feel there is still a problem, or ask on Stack Overflow if your issue is actually a question. |
Notice the invalid xpath selector
"[href='/'"
.If I do something like this:
I get a quite sensible error message saying "The given selector [href='/' is either invalid or does not result in a WebElement.".
However if I do this:
the error message says "TypeError: Unimplemented function: "isPending"", which is quite confusing and unhelpful.
The text was updated successfully, but these errors were encountered: