Unable to handle an alert on a new tab (redirected) #12481
Unanswered
martinrojasmet
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm new to WDIO and I'm trying to use it to automate some test cases. I'm stuck trying to handle an alert on a redirected page.
Upon logging in, the system redirects me to the landing page on a new tab in the browser. However, before loading the landing page you have to accept two alerts. From what I understand, the alerts are stopping the execution before I can switch to the new window (the one that has the landing page and the alerts) so I can't use .acceptAlert() because WDIO is focused on a different window. How can I solve this? Thanks in advance.
Code
Log (until it gets stuck)
Beta Was this translation helpful? Give feedback.
All reactions