Я использую Selenium, чтобы попытаться выбрать из странного поля выбора прокрутки (рисунок ниже). Я пытаюсь использовать опцию Select, как и в случае с выпадающими списками, но здесь это не похоже на ответ.
#I've tried finding the path to the element like this, trying to got the option I wanted.
profession = Select(driver.find_element_by_xpath('//*[@id="ctl00_MainContentPlaceHolder_ucLicenseLookup_ctl03_lbMultipleCredentialTypePrefix"]/option[28]'))
profession.select_by_value("Pharmacy")
#and I've tried using this.
profession = Select(driver.find_element_by_xpath('//*[@id="ctl00_MainContentPlaceHolder_ucLicenseLookup_ctl03_lbMultipleCredentialTypePrefix"]'))
profession.select_by_value("Pharmacy")
#Both of which fail to find the item I'm going for.enter image description here
