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

wwe 2k14 apk download for Android

Download WhatsApp for Windows Phone - XAP file