html - Unable to locate input box with ends-with keyword- Xpath -


thank taking look. i've been able work out starts-with below source code reason, ends-with doesn't work

<input type="text" value="" name="email" style="background-color: rgb(248, 248, 248);"/>

//input[starts-with(@name,'ema')]- works absoultelty fine

css=input[name*='ema']- works fine

css=input[name$='ail'] - works fine

//input[ends-with(@name,'ail')]- doesn't work

//input[ends-with(@.,'ail')]- doesn't work

i using firepath 0.9.7.1.1 & tried in version 1.0- no luck. in advance i've tried xpath "ends-with" not work & didn't help.

the ends-with() function requires xpath 2.0.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -