Answered

Escaping special characters

Hi

I am verifying an element which contains a name.  My dataset has a name that contains a special character 'D'Souza'.  How do I escape the special character?

xpath=//input[contains(@value, '${MyDataTemplate.Name}')]

0
1 comment
Avatar
Jonathan Hotz

Hi Sonya,

the most easy way is just to use double quotes in your expression to surround text part:

xpath=//input[contains(@value, "${MyDataTemplate.Name}")]

0
Comment actions Permalink

Please sign in to leave a comment.