Issue
I would like to know how to write the Xpath for validate the text -'Confirm Passowrd*' where there is more than 10 space gap between two words
When I tried to get it using chropath tool it gives Xpath like
//label[contains(text(),'Confirm Password*')]
But even that is also not working.
Solution
you can use the normalize-space in xpath.
//label[@ng-if='add_user' and normalize-space(text())='Confirm Password*']
Answered By - Infern0
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.