Answers for "switch tab in selenium"

0

switch tab in selenium

psdbComponent.clickDocumentLink();
    ArrayList<String> tabs2 = new ArrayList<String> (driver.getWindowHandles());
    driver.switchTo().window(tabs2.get(1));
    driver.close();
    driver.switchTo().window(tabs2.get(0));
Posted by: Guest on November-21-2019

Browse Popular Code Answers by Language