automated tests - Telerik testing tools - escape ampersand (&) in search string -


i'm using telerik testing tools. goal wait anchor make screen, click on it. anchor has href of #resources/details?mode=view&resourceid=149176

i'm having problems escaping string properly. code works perfectly:

activebrowser.waitforelement(5000, "href=~resourceid=149176")              .as<htmlanchor>().click(); 

unfortunately, when try incorporate more of url, breaks, ie, not work

activebrowser.waitforelement(5000, "href=~view&resourceid=149176")              .as<htmlanchor>().click(); 

it seems though & problem. i've tried escaping can think of based on telerik's documentation on find expressions, including \ \' , =.

what proper way escape string?

i believe can use &amp one.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -