how to get rid of quotes in xpath

15 views
Skip to first unread message

madhu sudan

unread,
May 31, 2017, 12:26:42 AM5/31/17
to Selenium Users
Hi all,

I have a xpath I'm not able to use it because f single and doubles quotes inside it. Could anyone help me out to get rid of the quotes and use of xpath

by.xpath('//*[@ng-class="'level-' + 3 + (row.branch.selected ? ' active' : '' ) + ' '+ (row.branch.mark ? 'ancestor-mark': '') + ' ' + row.classes.join(' ')"]');

Appreciate your valuable answer.

 
Reply all
Reply to author
Forward
0 new messages