There is a text that I want to validate and compare it with my test specification. For example, in my test specification, I have “release_number: 1.0.0.1”
When comparing the release number with OCR- imageFound or via “Pattern”, instead of reading it as “1.0.0.1”, the eggplant read it as “1.O.O.1”. This validation occur when validate using VNC. In my use case, I must use VNC to validate the test.
set mypattern to <1 digit, period,1 digit, period, 1 digit, period, 1 digit> // will find e.g. 1.0.0.1, 5.5.6.7
put imagefound(text:mypattern) // true if its found any match
Here is the link ot the sensetalk patterns which is based on regular expressions but more like you would “say” it.
If you like Regular expression you can print the sensetalk pattern