Here is the object's property :
*//text[@name='REQUESTS (11233)']
11233 is changing at runtime. If one request added then it will be 11234. If 1 request completed then the count will be decrease (11232).
I tried to get the object using regular expression as follows...
*//text[@name~'REQUESTS*']
But i'm not able to get the object.
I'm getting the following error:
No element found for path '*//text[@name~'REQUESTS*']'.
Anyone give me suggestion.
How to use Regular expression for numbers?
How to use Regular expression for numbers?
Regards,
Thangavel.S
Thangavel.S
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Please, read the documentation on regular expressions in RanoreXPaths:
http://www.ranorex.com/support/user-gui ... html#c1791
If you want to match anything that starts with "REQUESTS", your regular expression should look like the following:
You could also narrow the match to numbers:
If you need further information on regular expressions, please read the corresponding MSDN site: http://msdn.microsoft.com/en-us/library/hs600312.aspx
Regards,
Alex
Ranorex Support Team
http://www.ranorex.com/support/user-gui ... html#c1791
If you want to match anything that starts with "REQUESTS", your regular expression should look like the following:
Code: Select all
*//text[@name~'^REQUESTS.*']
Code: Select all
*//text[@name~'^REQUESTS ([0-9]*)']
Regards,
Alex
Ranorex Support Team