2021年5月7日
摘要: self.driver.find_element(*RegisterAccount.service).click()self.driver.find_element(*RegisterAccount.service).send_keys(Keys.DOWN)self.driver.find_elem 阅读全文
posted @ 2021-05-07 21:46 zennpumpkin 阅读(80) 评论(0) 推荐(0) 编辑
摘要: framework: https://github.com/startrug/selenium-python-framework useful website: https://stackoverflow.com/ automation: https://www.cnblogs.com/fnng/p 阅读全文
posted @ 2021-05-07 21:08 zennpumpkin 阅读(32) 评论(0) 推荐(0) 编辑
摘要: Select提供了三种选择方法: select_by_index(index) ——通过选项的顺序,第一个为 0 select_by_value(value) ——通过value属性 select_by_visible_text(text) ——通过选项可见文本 同时,Select提供了四种方法取消 阅读全文
posted @ 2021-05-07 20:57 zennpumpkin 阅读(35) 评论(0) 推荐(0) 编辑
摘要: WebDriverWait(self.driver, 1000000).until( EC.element_to_be_clickable((By.XPATH, "//button[contains(text(),'OK')]"))).click() 阅读全文
posted @ 2021-05-07 20:54 zennpumpkin 阅读(47) 评论(1) 推荐(0) 编辑
摘要: try: self.driver.find_element(*LogInLocators.submit_btn).send_keys(Keys.ENTER)except StaleElementReferenceException as msg: print("unable to locate el 阅读全文
posted @ 2021-05-07 20:53 zennpumpkin 阅读(64) 评论(0) 推荐(0) 编辑