Mar-19-2020, 11:06 AM
Help post:
How do you select the second or third element with the same class name while using selenium?
For instance,
Trial=browser.find_element_by_class_name(‘indicator-diamond’)[1]
Output: TypeError: ‘WebElement’ object is not subscriptable
How do you select the second or third element with the same class name while using selenium?
For instance,
Trial=browser.find_element_by_class_name(‘indicator-diamond’)[1]
Output: TypeError: ‘WebElement’ object is not subscriptable