| 11:49:56.111 | FAIL | InvalidSelectorException: Message: 'The given selector xpath=//div[@id=\'sales-pop\'] is either invalid or does not result in a WebElement. The following error occurred:\nInvalidSelectorError: Unable to locate an element with the xpath expression xpath=//div[@id=\'sales-pop\'] because of the following error:\n[Exception... "The expression cannot be converted to return the specified type." |
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/groups/opt_out.
Ugh
Could you send code snapped from the page where the element should be visible.
-Tatu
On 14.8.2013 19:13, dmllc wrote:
I am trying to verify how many times a webelement is displayed in a jquery overlay. I first use the keyword Wait Until Page Contains Element to verify that the overlay is generated in the DOM. This test case passes. But if I try to get the xpath count of a webelement within the overlay, the test case fails. I even tried to get the count of the overlay id which just passed with Wait Until Page Contains Element, but that fails too.--
Wait Until Page Contains Element id=sales-pop
Xpath Should Match X Times xpath=//div[@id='sales-pop'] 1
11:49:56.111
FAIL
InvalidSelectorException: Message: 'The given selector xpath=//div[@id=\'sales-pop\'] is either invalid or does not result in a WebElement. The following error occurred:\nInvalidSelectorError: Unable to locate an element with the xpath expression xpath=//div[@id=\'sales-pop\'] because of the following error:\n[Exception... "The expression cannot be converted to return the specified type."
what am I doing wrong?
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.