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()
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
Post a Comment