Hey @alvini
alvini:
My question is: How can I adjust my selector to account for scenarios, where a random value within a variable such as this, is encountered with a single quote or any other chars that disrupts the automation?
To answer your Question: Regex or the other above methods (escaped values / ASCII characters) should work with random/difficult values. Depends on the need really.
So, a fresh approach, lets try Regex in your selector.
I have made a quick Regex pattern which will allow for any single character between the R and S in “Father’s” - take a look and test to see if that suits your needs.
Replace this selector:
With this:
innertext=‘Father(.)?s Day Gift Ideas’ matching:innertext=‘regex’
If done correctly, the elements should update with colour changes. Something like the below:
Example from Tutorial
Tutorial Post:
It is now possible to use Regular Expressions in your selectors. Follow this guide to learn how!
What’s new?
We have added extra syntax to the Selector Editor to allow for advanced configuration of your selectors.
Let’s begin
As an example, I will be creating a selector that will be able to open a file whose name is dynamically changing.
Let’s assume I am receiving daily list of bills via email which are saved as a text file named ‘bills mmddyy.txt’, e.g ‘’bills 101019’. Now, I want to writ…
Hopefully this helps
Cheers
Steve