I have a test script that opens two tabs at the beginning. I need to know if there is a way to move to the next step in the testcase script (which performs actions on the other tab) before the previous tabs page has loaded?
- The script clicks on a button within the tab A .
Tab A then waits for the actions to be completed on tab B, before navigating back to tab A
The script is hanging on step 1
If I’ve understood you correctly, yes. However, there are a couple of points of ambiguity in your post which could easily lead to confusion.
There are two tabs at the beginning. Then you mention “other tab”. Is that a third tab? Or Tab A or Tab B?
Tab A should wait for Tab B then navigate back to Tab A. How can Tab A navigate back to Tab A???
I think you want this:
- From Tab A, click on a button.
- Switch to Tab B.
- Conduct actions in Tab B
- Switch back to Tab A.
- Continue in Tab A.
If that’s correct, all you need is WebUI.switchToWindowIndex (or similar)