ellipsis = self.driver.find_elements_by_xpath(xpath)[n] self.driver.execute_script("arguments[0].click();", ellipsis) self.driver.find_element_by_xpath(n_xpath).click()
有的时候可以定位成功选择,有的时候就选不上,头大,有大神可以看看吗
收起
你设置个延时试试,有时候是程序执行速度和网页响应速度不匹配导致的
报告相同问题?