I have been trying for a while and just cannot figure it out. Is there a way to search if text is user facing on a webpage when it may not be on the screen at the moment (long page with text and what you are searching for is at the end thus not visible by OCR without scrolling an unknown variable number of times)?
At the moment, my work around solution has been to use xtype CTRL+F, enter the text and then do a visual search for an image of what no results found looks like with a 99% match. Downside to that is, it is not as friendly for running on different machines (I changed my Chrome color scheme when I got a new computer which caused things to not hit the 99% threshold but any less and it was not consistently reliable when it did find “2.”.
I tried using SourceSearch but as you can imagine, “2.” can come up fairly often in code but never be in the actual user facing text on the website. At least in all attempts I have made, the OCR is hit or miss on reading 0/0 so that did not seem to work either.
Chrome_NoneFound_dpi_96.png

{
"Command": "XType",
"Target": "${KEY_CTRL+KEY_F}",
"Value": "",
"Description": ""
},
{
"Command": "XType",
"Target": "2.",
"Value": "",
"Description": ""
},
{
"Command": "visualSearch",
"Target": "Chrome_NoneFound_dpi_96.png@0.99",
"Value": "count",
"Description": ""
},
{
"Command": "if",
"Target": "${count}>0",
"Value": "",
"Description": ""
},
{
"Command": "store",
"Target": "No GPAs below 3.0",
"Value": "GLOBALGPA",
"Description": ""
},
{
"Command": "else",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "store",
"Target": "Manually Check",
"Value": "GLOBALGPA",
"Description": ""
},
{
"Command": "end",
"Target": "",
"Value": "",
"Description": ""
},
