Xpath quotes issue

19 views
Skip to first unread message

madhu sudan

unread,
May 31, 2017, 12:27:51 AM5/31/17
to Selenium Users
Hi,

I have an Xpath with quotes, Could anyone please help me out to get rid of the quotes in Xpath and use it to locate an element.

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

I appreciate your valuable answers.
Reply all
Reply to author
Forward
0 new messages