I’m beginner at using python3 and selenium, and trying to click specific value in dropdown options.
I tried using select and actionchains, execute_script with js, xpath, css… etc. but it can’t find the element despite website is fully loaded. I also tried clicking the dropdown for using coordinate, and pressing arrow keys in keychain. But it hasn’t worked also.
So I checked the all html, and finded the type of dropdown is hidden.
Is there any way to disable the hidden type or clicking value that I want?
the html code is below.
<input type="hidden" name="txtPosiCd" value="">
<select onchange="" name="txtPosiCd" style="width:150px;" class="textfield" title="직급">
<option value="">전체</option>
<option value="11">교수</option>
<option value="12">부교수</option>
<option value="13">조교수</option>
<option value="15">강사</option>
<option value="21">명예교수</option>
</select>
I’m sorry for only attaching html block because the webpage is only available to its members.
I’ve tried Googling and searching for solutions, but I couldn’t understand the explanations or they were methods I already tried and failed. If there is anything I might have missed, please let me know.
user26556363 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.