Wait for Pixel and like actions confuse me on variable changes
Posted: Thu Feb 23, 2023 3:52 pm
Hello,
I've been having trouble testing and researching this issue where for example let's say I do the action "Wait for Pixel" it has a thing at the bottom that lets you have a timeout timer for how long you the program can stay on hold if the thing it's looking for takes time such as it loading the page and certain elements where the pixels are looking would otherwise not cause the error message to appear and nothing does appear for the pixels to give the error message. Now this all work here, but the thing that confuses me is when I change the option for Timeout from "Raise TIMEOUT error (default option)" to "Set True of False to variable" I don't think I'm utilizing it properly because all of my testing keeps coming back differently. When I set it as the "Set True of False to variable" I obviously add a variable to it and the tests I've done include leaving the variable blank, putting the text True and False, adding numbers, etc. but I can't seem to get the variable to change when then timeout should occur since it wasn't able to find the pixels. So lets say I set the variable to be "websiteLoaded" and I put the text as "True", if the "Wait for Pixels" action can't find the website because it didn't load then I want it to change the variable from "True" to "False". I was wanting to know how I can get this done if I'm doing it wrong such as setting the variable to the wrong value or if I need to add another action or anything to accomplish this so that I can make my next steps in the task be if then blocks to tell it what to do in those cases. Thank you and I look forward to the replies.
I've been having trouble testing and researching this issue where for example let's say I do the action "Wait for Pixel" it has a thing at the bottom that lets you have a timeout timer for how long you the program can stay on hold if the thing it's looking for takes time such as it loading the page and certain elements where the pixels are looking would otherwise not cause the error message to appear and nothing does appear for the pixels to give the error message. Now this all work here, but the thing that confuses me is when I change the option for Timeout from "Raise TIMEOUT error (default option)" to "Set True of False to variable" I don't think I'm utilizing it properly because all of my testing keeps coming back differently. When I set it as the "Set True of False to variable" I obviously add a variable to it and the tests I've done include leaving the variable blank, putting the text True and False, adding numbers, etc. but I can't seem to get the variable to change when then timeout should occur since it wasn't able to find the pixels. So lets say I set the variable to be "websiteLoaded" and I put the text as "True", if the "Wait for Pixels" action can't find the website because it didn't load then I want it to change the variable from "True" to "False". I was wanting to know how I can get this done if I'm doing it wrong such as setting the variable to the wrong value or if I need to add another action or anything to accomplish this so that I can make my next steps in the task be if then blocks to tell it what to do in those cases. Thank you and I look forward to the replies.