04-25-2011, 03:50 PM
I have a list of buttons. And Button is type of WebElement Link like mentioned below:-
Its outer HTML is as follows:-
Only thing in above outer html, class and href is changing. So at runtime am using regular expression in outerhtml property to recognize the webelement as :-
But this type of regular expression assigment is not working. Could anyone tell me how to use the string in between and use regular expression on both the sides of String. Any help will be appreciated. Thanks.
Its outer HTML is as follows:-
Code:
<A class="abc" title="xyz" href="#a_b_DM_c" name=center jQuery1303725751136="4"></A>
Only thing in above outer html, class and href is changing. So at runtime am using regular expression in outerhtml property to recognize the webelement as :-
Code:
objBtn = "*.a_b_DM_c.*"
But this type of regular expression assigment is not working. Could anyone tell me how to use the string in between and use regular expression on both the sides of String. Any help will be appreciated. Thanks.