先触发动态生成代码
#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()
标签:self,element,ui,div,btn,下拉框,out
From: https://www.cnblogs.com/jiayouxhr/p/17387361.html