element=driver.find_element_by_xpath("html/body/footer/div/div[1]/section/div/div/div[2]/div[1]/ul/li[9]/div/div/a")
driver.execute_script("arguments[0].click();", element)
print(driver.title)
The xpath mentioned is that of a link. In the above code after driver.execute_script is executed the link is opened in a new tab but driver.title still shows the title of the old tab as a result a new element in the new tab could not be identified. Can someone help me here please.
Selenium version used: 3.11.0 Firefox version used: 47.0.2 geckodriver version used: 0.14