About Article:
This article will describe how to fix the connection issues that arise from clicking a button or link in a new tab or tab modal.
Description:
When a page opens a new window after some action, and then closes it programmatically it can cause the WebDriver to crash randomly.
A scenario where this can happen is by following the steps mentioned below:
- Click on a link or button
- It opens a window/modal to fill a form or load some information
- When you press finish/submit it closes the window, and you continue on the main application page
Solution:
To avoid this issue in the above mentioned example, write the NLP steps as mentioned below:
- Click on the link or the button
- Fill the form
- Call the delayWindowClose extension
- This extension would delay the auto window close operation by 15 seconds
- Press the finish/submit
- Switch to the previous tab (Note - not needed for tab modal)
- Wait a few seconds (E.g., Wait for the message that appears after submitting the form)
Comments
0 comments
Please sign in to leave a comment.