def step(self): try: sel.click( InfoBlock.element('Relationships', 'Middleware Server Group')) except NoSuchElementException: raise MiddlewareServerGroupNotFound( 'Server does not belong to Server Group')
def step(self): try: self.prerequisite_view.entities.relationships.click_at( 'Middleware Server Group') except NoSuchElementException: raise MiddlewareServerGroupNotFound( 'Server does not belong to Server Group')
def step(self): try: # TODO find_row_on_pages change to entities.get_entity() row = self.prerequisite_view.entities.paginator.find_row_on_pages( self.prerequisite_view.entities.elements, server_group_name=self.obj.name) except NoSuchElementException: raise MiddlewareServerGroupNotFound( "Server Group '{}' not found in table".format(self.obj.name)) row.click()