up vote 0 down vote favorite
share [g+] share [fb]

Having trouble with returning the text from an attr node for the purpose of using in a AssertText Selenium IDE command.

Command: AssertText Target: //input[@id='myInputTextBoxID']/@value Value: ${myStoredSeleniumVal}

The result is [error] Element xpath=//input[@id='V1_I1_T5']/@value not found I have tried using a literal for the value, and several variations of the xpath - this one however is confirmed to bring back the attribute node - but not the text from firebug command line $X(xpath)

Any help? THanks

link|improve this question
feedback

1 Answer

Helps to read the documentation and not assume that an element can also be an attribute!

Change the command to assertAttribute, and it works!!

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.