Python Forum
Select Drop down is not working properly
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select Drop down is not working properly
#1
On a certain web page, I am trying to select the various options in <Select> drop down using select_by_index() function. But the surprising thing is that element at Index is not getting returned when I call select_by_index(2). Instead element at index 3 is getting returned when select_by_index(2) is called. Where can be the problem? How to resolve this?
Reply
#2
It may be
0 - index one
1 - index two
2 - index three
Just like with lists and tuples
Reply
#3
Why its "maybe". It should be same across platforms and browsers.. Moreover in my case, it is skipping the element at index 2 entirely.. No value of index is able to fetch it
Reply
#4
Please show your code, and the html code, or the link and description where you are getting the drop down from.
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  My flask website not working properly Aggam 2 2,145 Nov-03-2020, 09:53 AM
Last Post: Aggam
  Selenium: accessing a drop-down menus without select tags ClassicalSoul 0 2,058 Apr-19-2020, 03:53 PM
Last Post: ClassicalSoul
  How to get visible text of Select Drop down ankitjindalbti 2 2,744 Jun-03-2019, 12:35 AM
Last Post: ankitjindalbti

Forum Jump:

User Panel Messages

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