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))
评论列表
文章目录