I am using python selenium on browser to fill in some form. I was trying to select an element in the drop-down list,
<a href="#" class="dropdown-toggle select" data-toggle="dropdown">0</a>
but if I try to find it by text using this script:
browser.find_element_by_link_text("0").click()
it result an error: "unknown error: Element is not clickable at point (498, 612). Other element would receive the click: ..."
and if try to find it by class name:
browser.find_element_by_class_name("dropdown-toggle").click()
it result in another error: "element not visible"
is there any way I can click onto that drop-down list? Thanks very much.
<a href..>is normaly just a link and no dropdown? Have you some <ul><ui> tags around? Maybe you have to open the dropdown first before selecting a value<div class="tckt"><label>How many tickets would you like?</label> <a href="#" class="dropdown-toggle select" data-toggle="dropdown">0</a></div>, it is the <div class="tckt"> blocking over the dropdown and make it not clickable