Fetch the data and assign it in variable. After that use if activity, and provide condition has below.
If condition: System.Text.RegularExpressions.Regex.IsMatch(stringValue,"(?=Invoice|invoice).+(?:Company|company)") or System.Text.RegularExpressions.Regex.IsMatch(stringValue,"(?=Company|company).+(?:Invoice|invoice)")
Keep click activity under then part in ‘IF’ activity.
So it will click when the condition is matches.
Feel free to reach us at any time if you have doubts. Thanks.
You can indicate the element which you want to click. And under aaname or innertext you can pass the variable which we got from get text activity. Thanks.
Thank you for your fast reply.
Now i get an error from the Click activity “Cannot find the UI element corresponding to this selector”
What I have forget to mention, is that I work on a website with many Hyperlinks in which the click activity should chouse, with the Regex Selector and continue by clicking on it.
If I put the activity inside OpenBrowser, validator returns success.
However, if I put it inside AttachBrowser, validator returns fail, even though it works in actual run.
The following is sample workflow. Hope it helps you.
System.Text.RegularExpressions.Regex.IsMatch(outputAaname,“(?=Invoice|invoice).+(?:Company|company)”) or System.Text.RegularExpressions.Regex.IsMatch(outputAaname,“(?=Company|company).+(?:Invoice|invoice)”)