Unable to locate element ID – NoSuchElementException


when im trying to select from a drop-down menu im getting the above error ..
the code i’m trying to use :

group = Select(web.find_element(by=By.ID, value='single_select62d3083e1707239'))
group.select_by_visible_text ('COHEEL_IPC-A-620_2207101059')

this is how it looks when I inspect the element

Thanks for the time 🙂


You can use the xpath to locate the element.
Try the following Xpath –

//label[contains(text(),'Separate groups')]/following-sibling::select

The code would look like –

sel = web.find_element_by_xpath("//label[contains(text(),'Separate groups')]/following-sibling::select")

Answered By – Ayush Adarsh

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published