I need Selenium to choose menu with VALUE that I obtained from crawling. Here is the portion of HTML code of Dropdown menu:
<select class="graySelect" name="sch_bub_nm" id="sch_bub_nm"
title="Case Number" onchange="onChangeBub();">
<option value="000100">Case1</option>
<option value="000200">Case2</option>
<option value="000201">Case3</option>
.
.
.
Here is the code I wrote so far:
def MenuChoose():
driver.find_element_by_css_selector('#sch_bub_nm').click()
driver.find_element_by_xpath("//*[@id="sch_bub_nm"]/option[1]")
As you can see, I tried to choose the menu, and I got stuck as xpath showed no value that I can direct code to.