eidech / icselectionfilterpopulator

Python Script using Selenium Library to populate a Selection Filter on Infinite Campus from a CSV file containing student numbers
0 stars 0 forks source link

Script Runs Slowly Iterating Through Select Options #1

Closed eidech closed 1 year ago

eidech commented 1 year ago

The script takes a long time (~45-60 seconds) to iterate through the select options using the Select object in the Selenium library. This should be improved (consider using alternate method of getting option).

eidech commented 1 year ago

When moving over values, they do not disappear from the list on the left; should be able to grab indices by parsing HTML code then only select needed elements by select_by_index. This would remove the need to iterate through all values, which seems to be what's causing the script to run slowly.