Recommendations for "E225: DOM failed to be ready" error

I am attempting to execute downloads from a client application called MasterControl using Chrome and Ui.Vision RPA. The script works for a few documents or as many as a hundred before it stalls with an error: E225: DOM failed to be ready in 30sec.

The steps being repeated in the script are:

  • selectWindow|TAB=OPEN|MasterControl URL
  • selectFrame|id=myframe
  • onDownload|newFilename|true
  • click|xpath=//*[@id=“Download”]/i
  • selectWindow|TAB=CLOSE

Due to the sensitive nature of the documents, I am unable to share screen captures, but I am surprised to not see similar postings, so I am not sure what I might be missing. Perhaps I should be trying Edge or Firefox, or there is another command I should be using in the script.

Please let me know any suggestions or advice, and thanks in advance.

Theo

Hi, thanks for your post. One question: After this error happens, if you click PLAY again, does the macro then continue to work? Or do you need to close and open the browser?

Also, this the error always at or before the same line?

Hi - thanks for the response!

The task involves downloading thousands of documents through the web interface, so when it fails, I modify the JSON code to remove the successful downloads and continue from the point of failure. This is the cycle I am in, and because of the inconsistent behavior, I need to monitor the download constantly. It also means that I don’t simply hit play to continue as that would download files I have already downloaded. To answer your question though, just hitting play does work, but doesn’t resolve my problem.

I initially thought it might be due to the document size (they are all different) but it is able to successfully continue each time, whether for a few or many downloads. I have tried restarting the browser, clearing history, adding wait steps, using other commands and using Edge, but the result is still the same. My impression is that restarting the browser with a history clear tends to allow longer runs, but I can’t validate it. I have not tried Firefox yet due to the time it takes to get new applications installed in this system, but that’s another situation!

Is there any clue as to what the error code means?

Regards

Theo

Hi, similar to what I just wrote in this web scraping post, I recommend to start Ui.Vision from the command line. That allows you to react to all kinds of errors, even if the browser crashes such a script can react to it.

1 Like

Interesting approach - I will investigate that option. I like that it avoids the ‘flakiness’ of long-running browser sessions

Much appreciated!

I have been able to get 2-3 downloads to work using the command line approach, even passing some variables to get the desired file name (${!cmd_var1}, ${!cmd_var2} and ${!cmd_var3}), but when I test with larger numbers of downloads, the process fails. Getting the script to wait for the download to complete for each call seems to be an issue.

With “script” you mean the macro or the calling (Powershell) script?

Note that in the macro you must use OnDownload to wait for the download to complete.

I was refering to the batch script, it does not wait for the download to complete, even when the Ui.Vision code is using the onDownload step with ‘true’ to wait for the download to complete

In the end I went back to manual monitoring, as it was less painful than working with batch scripting, and after several days of babysitting, I am almost done

The issue seems to be when larger files are downloaded, or generally instability of Chrome browser or the MasterControl server application

It would be great to have a clearer understanding of what the E225: DOM failed to be ready in 30sec. message mans and options to address it