Professional Documents
Culture Documents
Switching between windows: Generally selenium will focus on the 1st window, w
henever the application moves to the next page or tab , selenium can t automatical
ly switch to that window so we need to make the selenium to switch to that lates
t window with the help of following syntax.
Webdriverreference.switchTo().window( "windowId" );
To get the window id we have a method in selenium is getWindowHandles();
public class switchtooooo {