1from selenium import webdriver
2from selenium.webdriver.support.ui import Select
3
4driver = webdriver.Firefox()
5driver.get('url')
6
7select = Select(driver.find_element_by_id('fruits01'))
8
9# select by visible text
10select.select_by_visible_text('Banana')
11
12# select by value
13select.select_by_value('1')
1Below is my html script , When i am trying to select the option , i am getting the error as - ElementNotInteractableException: element not interactable: Element is not currently visible and may not be manipulated
2 (Session info: chrome=89.0.4389.128)
3
4I have tried using sleep , but it is not working. please help
5
6<select kdfid="priceListDropDownId" kdfapp="order" kdfpage="createOrder" theme="simple" class="moreCategoriesSelect sb_active" cssstyle="width: 320px;" id="priceListDropDownId" onchange="selectPriceList();" sb="62056695" style="display: none;">
7 <option value="" id="priceListSelect">Please Select</option><optgroup label="Frequently Used"></optgroup>
8 <optgroup label="All Price Lists">
9
10 <option value="1027">AUSTRALIA Price List in AUDs Ex-Tax</option>
11
12 <option value="1220">CHINA Price List in Us Dollars</option>
13
14 <option value="1441">Global Asia-Pac Price List in US dollars</option>
15
16
17 </optgroup>
18 </select>
19Thanks