How to switch the tab to the main tab in the Safari iOS web automation?
Hi Brett,
To switch the tab in to the main tab in Safari iOS web automation you can use the command mentioned below:
ArrayList<String> tabs = new ArrayList<>(driver.getWindowHandles());
driver.switchTo().window(tabs.get(1));
Thread.sleep(5000);
driver.switchTo().window(tabs.get(0));