Python Selenium click code

Using class name and JavaScript Method:
driver.execute_script("document.getElementsByClassName('value')[0].click()")

Using ID name and JavaScript Method:
driver.execute_script("document.getElementById('btnOneViewBack').click()")

Normal method:
driver.find_element_by_class_name('value').click()

Comments

Popular posts from this blog

Vivo Y51 themes download itz

What's the solution? SA-MP Mobile - App not installed as app isn't compatible with your phone - Poco X6

Getting too many Vodafone spam calls