/form[@title='Equipment Operators']
/form[@title~'^Shift\ Change\ -\ Cat\ MineSt']
My answer for above by using regular expression
1) /form[@title~'*.*']
2) /form[@title~(=|~)'*.*']
3) /form[@title~(=|~)'*.*']
4) /form[@title*]
5) /form[@title*.*]
All failed. Any Suggestion on this how to use regular expression.
Regular Expression
Re: Regular Expression
Hi,
Matching form with "any" title is not a very good idea (if this is what you are after). You see, this could take a very long time to find all forms and it may return many irrelevant forms!
If your application can have either of both titles, then use OR operator in you xpath, like this:
Matching form with "any" title is not a very good idea (if this is what you are after). You see, this could take a very long time to find all forms and it may return many irrelevant forms!
If your application can have either of both titles, then use OR operator in you xpath, like this:
Code: Select all
/form[@title='Equipment Operators' or @title~'^Shift\ Change\ -\ Cat\ MineSt']
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
-
- Posts: 8
- Joined: Tue Jun 07, 2016 8:30 am
Re: Regular Expression
Thank You Odklizec. It worked with your idea.
Thanks.
Thanks.