HI!
I would like the bot to go into a webpage each time and look for how many times the word “Email sent” appears. This webpage has variable text meaning the text is not the same each time the webpage is accessed. I will use that result on a If/then activity later. What is the best way of doing this?
If i understood correctly I should use the get text activity. Create a variable to store the scraped text and then on an assign activity I will use the suggested regex.
If the variable name is “scraped” the assign activity should look like this?
Sorry I did not noticed your message earlier. I am not able to show you a screenshot of the webpage but if you have any suggestions on how to accomplish this task please let me know. I would love to try it.
I have tried your suggestion but it is not working. I am receiving a message stating "compiler error(s) encountered processing expression System.Text.RegularExpressions.Regex.Matches(scraped,“Email sent”).Count Option Strict On disallows implicit conversions from integer to string.
The field were is supposed to get the text is a few individual boxes on the webpage. With Get Text I can only select the word on one of the boxes but it will not read from any of the other boxes. Is there another way to read the entire page to recognize the other boxes?