Hi, I have a macro that opens a web page, scans it’s content, follows some conditions depending on the page content and then presses a button to perform a task. It does this for hundreds of links. Each task opens a new page. So for every web page it opens, it will open a second page if the task starts
One version of this macro is very stable where it opens 7 web pages, performs 7 tasks, waits 330s then closes all tabs and starts over.
The task time changes depending on the web page so some tasks take longer than others. In an attempt to make it faster, I made a new macro which waits for each individual task to complete (using {“Command”: “selectWindow”, “Target”: “title=submitted!”, “Value”: “”, “Description”: success"})
and then closes JUST THAT TASK and opens a new page to start a new one. So instead of waiting for all to be done, it seeks out and closes/starts a new task when any are done.
This more efficient version has the issue with the error Dom failed to be ready in 30s. When this happens it’s like the macro just doesn’t see chrome anymore. commands still run but they don’t do anything. Sometimes this task will run for an hour and process 200 links then have the error. Sometimes it lasts 23 links. Sometimes 6. It’s completely random.
I don’t know what information you need, I’m very much not a good coder but the code logic makes sense I think. The code works perfectly but only for short runs when it stops with the error. Stopping and starting the macro will start it again like normal.
What does the error mean and how can I fix it? I use xmodules and the desktop storage for the macro.
Thank you!