Feature Request
Enable Inject Js script to have settings that allow it to wait (until timeout is reached) for response.
Alternatively provide explicit instructions for how to use the Invoke Js Script activity to wait for an actual response along with a sample workflow for a windows c# UiPath project.
@grosner Depending on what version of Studio you are using, have you considered using a UiPath Coded Workflow instead? It allows you to write more direct, traditional, line-by-line coding workflows that may allow you to have more control you are expecting with certain UIs in this case: Studio - Coded Workflow (uipath.com)
Alternatively, what are you trying to accomplish with a delay in a JS script that you cannot use an Element Exist for OR a get text and check an element loaded its elements yet, etc.?