How can I click on an element using pytest?
Hi Brett!
To click on an element using pytest, you can make of use of locators .
Please refer to the below syntax -
driver.get("https://www.lambdatest.com")
element = driver.find_element_by_link_text("Dashboard")
element.click()