I am trying to use click command in Selenium webdriver using python. But I am getting the below error. Can some one help me?
Traceback (most recent call last
Refers to the locating elements documentation, here is an explanation of find_elements_*:
To find multiple elements (these methods will return a list)
So, to access particular element, using an index like this:
#first element
driver.find_elements_by_xpath("xpath")[0].click()
Or you can use a loop to access all elements in the list:
#assumed to click the checkbox
chks = driver.find_elements_by_xpath("xpath")
for chk in chks:
chk.click()