On a website there are two posible stats and i wanna check if there is currenty red or green
red
green
Code: Select all
status := % wb.document.getElementsByClassName("info-crc").text
tooltip, %status%
Sleep, 10000
If status = red
{
tooltip, red
Sleep, 10000
return
}
If status = green
{
tooltip, green
Sleep, 10000
return
}