Python Forum

Full Version: Select Drop down is not working properly
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
It may be
0 - index one
1 - index two
2 - index three
Just like with lists and tuples
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
Please show your code, and the html code, or the link and description where you are getting the drop down from.