0

Sorry I can't find the answer.

Do you know if it was possible to open a :

link = driver.find_element(By.XPATH,'//*[@id="block-system-main"]/div/div/div/div[3]/table/tbody/tr[{}]/td[2]/a'.format(rando))
driver.execute_script("arguments[0].scrollIntoView()",link)
link.click()

In a another tab or windows if it was not programmed by the website?

And after that I can switch, i know this part. Thanks for your help.

1 Answer 1

1

First you need to get the href value of the link and then use the below code.

link = driver.find_element(By.XPATH,'//*[@id="block-system-main"]/div/div/div/div[3]/table/tbody/tr[{}]/td[2]/a'.format(rando)).get_attribute("href")


driver.execute_script("window.open('{}')".format(link))
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.