models.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:winnaker 作者: target 项目源码 文件源码
def get_application(self, appname):
        self.check_page_contains_error()
        e = wait_for_xpath_presence(
            self.driver, cfg_applications_xpath, be_clickable=True)
        e.click()
        e = wait_for_xpath_presence(self.driver, cfg_searchbox_xpath)
        e.send_keys(appname)
        e.send_keys(Keys.RETURN)
        time.sleep(1)
        self.driver.save_screenshot(join(
            cfg_output_files_path,
            "applications.png"))
        app_xpath = "//a[contains (.,'" + appname + "')]"
        e = wait_for_xpath_presence(self.driver, app_xpath)
        e.click()
        time.sleep(1)
        logging.info("- Searched for application: {}".format(appname))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号