def step(self): self.prerequisite_view.sidebar.relationships.open() try: self.prerequisite_view.sidebar.relationships.nav.select( title='Show all Security Groups') except NoSuchElementException: raise CandidateNotFound('No security groups for stack, cannot navigate')
def step(self): accordion.click('Relationships') # Click by anchor title since text contains a dynamic component try: sel.click('//*[@id="stack_rel"]//a[@title="Show all Outputs"]') except NoSuchElementException: raise CandidateNotFound('No Outputs for stack, cannot navigate')
def step(self): self.prerequisite_view.sidebar.relationships.open() try: self.prerequisite_view.sidebar.relationships.nav.select( title='Show all Resources') except NoSuchElementException: raise CandidateNotFound( {'No resources for stack': 'cannot navigate'})
def step(self, *args, **kwargs): self.prerequisite_view.sidebar.relationships.open() try: self.prerequisite_view.sidebar.relationships.nav.select( title='Show all Outputs') except NoSuchElementException: raise CandidateNotFound( {'No outputs for stack': 'cannot navigate'})