Answer the question
In order to leave comments, you need to log in
Python Selenium how to select an option from a drop down list?
I don't need to select one of the options from the drop down list
But it doesn't work...
Clicking either doesn't give me any error
driver.find_element_by_class_name('form-control').find_elements_by_tag_name('option')[1].clik()
AttributeError: ' WebElement' object has no attribute 'clik'
or
Select(driver.find_element_by_class_name('form-control')).select_by_value('D48')
selenium.common.exceptions.NoSuchElementException: Message: Cannot locate option with value: D48
or
driver. find_element_by_class_name('form-control').click()
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
(Session info: chrome=88.0.4324.104)
if I iterate over all options, it doesn't return all options...
a = driver.find_element_by_class_name('form-control').find_elements_by_tag_name('option')
[print(i.get_attribute('value')) for i in a]
BS_TS documentation verification protocol BS_TS
technical acceptance certificate
Minutes of remarks
ACT of equipment and materials installation (signed)
BS project documentation
Answer the question
In order to leave comments, you need to log in
driver.find_element_by_class_name('form-control').find_elements_by_tag_name('option')[1].clik()
AttributeError: 'WebElement' object has no attribute 'clik'
Use another function (animation-timing-function):
везде_где_есть_эта_анимация {
animation: flipOutRight 7s cubic-bezier(0,1,0,1);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question