Exemple #1
0
def _repo_nav_fn(context):
    repo = context['repository']
    if current_version() >= '5.4':
        quadicon = Quadicon(repo.name, "repository")
        sel.click(quadicon.locate())
    else:
        sel.click(_repo_row(repo.name)[1])
    sel.wait_for_element(repo._detail_page_identifying_loc)
Exemple #2
0
 def exists(self):
     sel.force_navigate('infrastructure_repositories')
     try:
         if current_version() >= '5.4':
             quadicon = Quadicon(self.name, "repository")
             return sel.is_displayed(quadicon.locate())
         else:
             return bool(_repo_row(self.name))
     except:  # exception?
         return False