Hello, when the program gives an error anywhere, it closes by saying "fail". I also want to write a script if it fails. It is not clear where it will give the error, how do I do this? for example I want to run write file when it gives an error
Create a variable called "counter". Than use "is element exist" to check if element exist and update "counter" variable whenever element is missing. Check counter variable in the loop, and fail thread if "counter" hit 3