Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Object not Subscriptable
#1
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
Reply


Messages In This Thread
Object not Subscriptable - by AgileAVS - Mar-19-2020, 11:06 AM
RE: Object not Subscriptable - by ndc85430 - Mar-21-2020, 02:18 PM
RE: Object not Subscriptable - by wademozybozy - Oct-08-2021, 03:54 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020