The right way to script waiting for events in multiple browser tabs?
I have a small script that performs some actions in a web-based application. A cornerstone of this script is waiting for an "event complete" message, and proceeding to the next step. Here's the simplified code:
-------
for a in range(1000):
{start the action}
Region(
wait(
{complete the action}
-------
This works perfectly fine. However, now I would like to run it in 10 tabs at the same time.
What would be the proper way to set up observation for a specific event (which will be the same in any tab), across multiple tabs? Using time delays will not work, since the action may take a variable time to complete.
Any advice - especially with a simple code example - would be much appreciated.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask tjonnyc for more information if necessary.