I often use text search instead of image search these days. OCR is very robust against screen resolution changes and usually works on all machines I use it own. So if there is text inside your iframe, that will be a good alternative to the image search. I use OCRSearch for this:
In this demo I wait for the minute value to change from 37 to 38:
{
"Name": "wait for text to appear on website",
"CreationDate": "2024-12-10",
"Commands": [
{
"Command": "store",
"Target": "fast",
"Value": "!replayspeed",
"Description": ""
},
{
"Command": "store",
"Target": "98",
"Value": "!ocrengine",
"Description": "Javascript OCR engine"
},
{
"Command": "open",
"Target": "https://www.timeanddate.com/time/zone/uk/london",
"Value": "",
"Description": ""
},
{
"Command": "do",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "OCRSearch",
"Target": "*:31:*",
"Value": "i",
"Description": "Test text search: Wait for the minute value to be a certain value"
},
{
"Command": "echo",
"Target": "i=${i}",
"Value": "blue",
"Description": "How often was the word found?"
},
{
"Command": "repeatIf",
"Target": "${i} < 1",
"Value": "",
"Description": "If found at least once the word is on the website"
},
{
"Command": "echo",
"Target": "TEXT FOUND i=${i}",
"Value": "green",
"Description": ""
}
]
}