如何从下面的网页中找到下拉菜单,selenium with python 我正在尝试

问题描述 投票:0回答:0

我想点击下面网页的下拉菜单,请帮我找到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>   ''''
python selenium-webdriver xpath dropdown
© www.soinside.com 2019 - 2024. All rights reserved.