element ui 动态下拉框定位

先触发动态生成代码

#po封装
btn_pre_out = (By.XPATH, '/html/body/div/div/div[1]/div[3]/div/span')
btn_out = (By.XPATH, '/html/body/ul/li')

self.click(*self.btn_pre_out)
ele = WebDriverWait(self.driver, 10).until(
            lambda _: self.driver.find_element(*self.btn_out)
       )
ele.click()
        
posted @ 2023-05-10 11:03  jiayouxhr  阅读(84)  评论(0编辑  收藏  举报