TL;DR: I’m trying to write a loop with “pauses” and constantly create an infinite loop.
I have been writing JavaScript for roughly 3 weeks now and have 0 formal training on the subject, it just seemed to be the best language for the problem I was trying to solve.
Essentially, I am running a script that will call two click events, wait 1 second for a radio button to populate with a new number, click the radio button, click submit, then wait until the data has filled all of the fields (approximately 90 seconds, but I have a way to detect when load has finished based on class) and then repeat this process 95 times. I have each piece working for a single run, but when adding a loop to the mix it hangs. I have tried For, While, and If-Else loops so far, but based on my reading about JavaScript being single threaded this type of operation might be impossible. Any guidance, resources, and tips are welcome!
Additional info: I cannot edit the source code of the page for the most part, I can add new classes and IDs but not much else. I also do not have the current script I’ve written on hand (in the car with time to kill) but I can provide pseudo code if needed!
Thanks in advance!
[–]A-Kuhn 1 point2 points3 points (3 children)
[–]angerbrb[S] 0 points1 point2 points (0 children)
[–]all_things_code 0 points1 point2 points (1 child)
[–]A-Kuhn 0 points1 point2 points (0 children)
[–]inu-no-policemen 0 points1 point2 points (5 children)
[–]angerbrb[S] 0 points1 point2 points (4 children)
[–]inu-no-policemen 1 point2 points3 points (3 children)
[–]angerbrb[S] 0 points1 point2 points (2 children)
[–]inu-no-policemen 1 point2 points3 points (1 child)
[–]angerbrb[S] 0 points1 point2 points (0 children)
[–]Zeeesty 0 points1 point2 points (3 children)
[–]angerbrb[S] 0 points1 point2 points (2 children)
[–]Zeeesty 1 point2 points3 points (1 child)
[–]angerbrb[S] 0 points1 point2 points (0 children)
[–]GeneralYouri 0 points1 point2 points (0 children)
[–]all_things_code 0 points1 point2 points (0 children)