Window POPUP's/Tabs/New window
Window Handler - click on element opening new page/Tab public class WindowHandlersmultplecircle { static By linkedin = By. xpath ( "//a[contains(@href,'linkedin')]" ); static By facebook = By. xpath ( "//a[contains(@href,'facebook')]" ); static By twitter = By. xpath ( "//a[contains(@href,'twitter')]" ); static By youtube = By. xpath ( "//a[contains(@href,'youtube')]" ); @Test public void windowhandleCircle() throws InterruptedException { WebDriver driver = new ChromeDriver(); driver .get( "https://opensource-demo.orangehrmlive.com/web/index.php/auth/login" ); driver .manage().window().maximize(); //System.out.println(driver.getCurrentUrl()); Thread. sleep (4000); String parentWindowID = driver .getWindowHandle(); driver .findElement( twitter ).click(); //System.out.println(driver.getCurrentUrl()); driver .findElement( facebook ).click(); //System.out.println(driver.getCurrentU...