how to get rid of quotes in xpath

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

how to get rid of quotes in xpath

Selenium - Users mailing list
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.

 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/62ce63f1-fe01-4834-999f-dbbd3f7cf780%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...