CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

commands after switchTo in webdriverio works like there was no switchTo

Open aldarund opened this issue 10 years ago • 2 comments

For example i want to test a page with link to target=_blank. I use I.switchTo(0); And in selenium i see that the it indeed switched to this new page. But any following command after it just bring focus on the first page again, so im not able to test whats on that second page.

aldarund avatar Aug 26 '16 19:08 aldarund

Hi @aldarund is switchTo method is working for you ? because i tried it's not working for. getting - Unsupported frame locator: java.util.HashMap

manibushan13 avatar Apr 14 '17 06:04 manibushan13

Please try to update to 1.0.0 and try again. to switch to iframe, use switchTo, if you want to switch tab, use switchToNextTab

APshenkin avatar Jul 25 '17 11:07 APshenkin