I am trying to open a new tab and copy a new URL address to it
I currently am able to open a New tab by body.send_keys(Keys.CONTROL + 't')
driver = webdriver.Firefox()
#time.sleep(2) #wait 1 second
driver.get("https://stackoverflow.com/")
body = driver.find_element_by_tag_name("body")
body.send_keys(Keys.CONTROL + 't')
However I am not sure how to copy a new address to the URL
I tried
driver.find_element_by_link_text("").send_keys("https://google.com/")
But was not sure what to have inside link text
any suggestions?
Why not a duplicate:
Question is what goes inside the find_element_by_link_text("")
. The page sent as duplicate only says urlLink. What does that mean ?