I currently have a script that reads a csv, opens the column, waits for the page to load, captures URL via store and saves it to a new CSV.
How can I modify it so it writes the new URL on the same row as the URL it visits in the same CSV file?
After awhile, the page URL catches the automation and creates a URL that contains “checkpoint” or “authwall” - how can I modify the script so that when it catches this it stops the loop and alerts the user? For the loop now I use the “Play loop…” feature instead of code. Thank you very much for your advice!
I would think you could still use the “Play loop…” feature, you would need an If statement, though. At the point where the decision is made, you would just have a “gotoIf_v2” and the label it goes to could max out your ${!LOOP} counter variable.
I create my own loops, so I’m not very familiar with the “Play loop…” feature. If there’s a way to code in an exit, that would be nice, otherwise just max that variable and you should be done.
I figured out a simple albeit inelegant solution without using IF. Since the problem is that basically my automation gets detected and I get bumped into a different page I added a verifyElementPresent condition, this way if the page that is loaded doesn’t have the name of a person it would throw an error. I went under settings -> Replay -> If error happens in loop -> selected “Stop”. This way when my script ends up visiting a page that the element is missing it will throw an error and stop the script.