I am using Python. I am trying to open two tabs on chrome, each to a different website. This is my code:
from selenium import webdriver from selenium.webdriv
You should switch to other tab to interact with it.
ArrayList tabs = new ArrayList (driver.getWindowHandles()); driver.switchTo().window(tabs.get(0));//first tab driver.switchTo().window(tabs.get(1));//second tab