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()