我想点击下面网页的下拉菜单,请帮我找到xpath。
我试过的。
select_ddown=self.driver.find_element(By.XPATH, "//div//h5[text()='Source Attribute to Predict']//select[@class='form-control']") select_ddown.click()
它不工作!!!! ''''
Webpage inspect !!!!
<div _ngcontent-c1="">
<h5 _ngcontent-c1=""><b _ngcontent-c1="">Source Attribute to Predict</b></h5>
select _ngcontent-c1="" class="form-control">
<!----><!---->
<!----><option _ngcontent-c1="">
ACTIVERATIO
</option>
<!---->
<!----><option _ngcontent-c1="">
ADCSIZE_ADCSIZE_DN_DEFAULT_ADCSIZE_DW1_DEFAUL111
</option> ''''