How to open a link in a new tab of the Chrome browser using Selenium WebDriver?

How to open a link in a new tab of the Chrome browser using Selenium WebDriver?

Hey there NoahSmith,

First, open a new tab:

driver.find_element_by_tag_name(‘body’).send_keys(Keys.COMMAND + ‘t’)

Then open the URL using get:

driver.get(‘www.google.com’)"

Hope that helped.