Example #1
0
 def create(self, values):
     """Create new host entity"""
     view = self.navigate_to(self, 'New')
     view.fill(values)
     self.browser.click(view.submit, ignore_ajax=True)
     self.browser.plugin.ensure_page_safe(timeout='600s')
     host_view = HostDetailsView(self.browser)
     host_view.wait_displayed()
     host_view.flash.assert_no_error()
     host_view.flash.dismiss()
Example #2
0
 def create(self, values):
     """Create new host entity"""
     view = self.navigate_to(self, 'New')
     view.fill(values)
     view.submit.click()
     host_view = HostDetailsView(self.browser)
     wait_for(lambda: host_view.is_displayed is True,
              timeout=60,
              delay=1,
              logger=host_view.logger)
     host_view.flash.assert_no_error()
     host_view.flash.dismiss()