0 votes
1.5k views
in Software Testing by
I am switching to new window in selenium web driver its happening by driver.switch().towindow() but when I am coming back to original window actions like click,sendkey are not performing on original window. I am coming back like driver.switch().toorignal().

 

Please help with an example .

1 Answer

+1 vote
by
Get the parent window name before navigating to new window using driver.getWindowHandle();

Perform the operations

 

switch the window to Original window using driver.switchTo.window(windowname).

Not a Member yet?

Ask to Folks Login

My Account

Your feedback is highly appreciated