Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expressions
#1
Solved: 11 Years, 3 Months, 3 Weeks ago Question 
I have a list of buttons. And Button is type of WebElement Link like mentioned below:-

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.
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Charan Preet,

I hope you added the object to OR, if not first of all add the object to OR.
And use regular expression ".*a_b_DM_c.*" in the OR and make sure that you have selected regular expression.
Msure that the object is identifying with the current regular expression.
The option would be using SetTOProperty to handle such situations.
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  regular expressions ajayr1982 2 2,221 06-08-2012, 03:43 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 2 Guest(s)