karatelabs / karate

Test Automation Made Simple

Home Page:https://karatelabs.github.io/karate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I am not able to switch to new window from parent window. Switch page is not working

Aditri2509 opened this issue · comments

Can anyone help me

please ask questions like this on stack overflow and also see: https://stackoverflow.com/a/63706655/143475

I am trying to switch on new browser window from parent window. I need to close new window switching on it. I have tried to use switch page() method,but it is not working for me.My code:
Driver ( original URL)
//Login using credentials
Search the document in desktop
wait for('give value ').click() // it will open document in viewer mode.
switch page('titel/URL/index)

Script is not switching to new page. Can some share code to figure out this issue