I’m trying to write a script that does the following:
- extract the text from a text view (via Mobile.getText())
- Use a VariableCollections to compare to and find specific sets of words in the extracted text (John Smith, 26 July 2023, Location Name Here etc.)
My issue right now is that I don’t know the specific keyword/method that allows me to look for sets of words. I tried verifyMatch (as is shown in the screenshot) but that compares the VariableCollection to the entire text rather than searching through them. I have considered using something like ‘split’ but I don’t know how exactly to apply that one in this context.
screenshot of the code