how to click on a link in selenium python code example
Example 1: python selenium click element
element.click()
Example 2: selenium click on link python
from selenium import webdriver
driver = webdriver.Chrome(executable_path="C:\\chromedriver.exe")
driver.maximize_window()
driver.get("https://www.tutorialspoint.com/about/about_careers.htm")
driver.refresh()
driver.find_element_by_link_text("Company").click()
driver.close()
Example 3: how to click on hyperlink in selenium
We use click() method in Selenium to click on the hyperlink
driver.findElement(By.linkText(“Software Testing Material Website”)).click();