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()

Popular posts from this blog

Free games for 512 MB RAM Android mobile

Moto E Screen Broken! What Is The Cost? Can I Replace Glass Alone?

To place call first turn off airplane mode - Micromax