class ImplicitWaitTestCase(unittest.TestCase): def setUp(self): self.p = Page() self.p.open() def test_implicit_wait_default_works(self): self.p.click_delayed_content_button() self.p.delayed_content_should_exist() def tearDown(self): self.p.close()
class ImplicitWaitTestCase(unittest.TestCase): def setUp(self): self.p = Page() self.p.open() def test_implicit_wait_default_works(self): self.p.click_delayed_content_button() self.p.delayed_content_should_exist() def tearDown(self): self.p.close()
class ImplicitWaitTestCase(unittest.TestCase): def setUp(self): self.p = Page() self.p.open() @raises(ValueError) def test_pass_explicit_wait_to_find_element(self): self.p.click_delayed_content_button() self.p.delayed_content_should_exist_explicit() @raises(ValueError) def test_pass_explicit_wait_to_find_elements(self): self.p.click_delayed_content_button() self.p.delayed_content_should_exist_explicit_calling_find_elements() def tearDown(self): self.p.close()
class ImplicitWaitTestCase(unittest.TestCase): def setUp(self): self.p = Page() self.p.open() @raises(ValueError) def test_pass_explicit_wait_to_find_element(self): self.p.click_delayed_content_button() self.p.delayed_content_should_exist_explicit() @raises(ValueError) def test_pass_explicit_wait_to_find_elements(self): self.p.click_delayed_content_button() self.p.delayed_content_should_exist_explicit_calling_find_elements() def tearDown(self): self.p.close()