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
To interact with a window, you need to set the context to that window with driver.switch_to.window. It would also be easier to open a new tab with a script injection:
browser=webdriver.Chrome()
#first tab
browser.get('http:/reddit.com')
#second tab
browser.execute_script("window.open('about:blank', 'tab2');")
browser.switch_to.window("tab2")
browser.get('http://bing.com')