class TestAbout(TestPyOrgBase): def setUp(self): super().setUp() self.about = AboutPage(self.driver) def test_TC003_upcoming_events_check(self): self.about.assert_elem_text(AboutPageLocators.UPCOMING_EVENTS, 'Upcoming Events')
class TestAbout(TestPyOrgBase): """ TBD """ def setUp(self): super().setUp() self.about = AboutPage(self.driver) def test_TC003_verify_upcoming_events_section_present(self): self.about.assert_elem_text(AboutPageLocators.UPCOMING_EVENTS, 'Upcoming Events')
class TestAbout(TestPyOrgBase): def setUp(self): super().setUp() self.about = AboutPage(self.driver) def test_TC003_upcoming_events_check(self): self.about.assert_elem_text(AboutPageLocators.UPCOMING_EVENTS, 'Upcoming Events') # with unit test. current url'de about var mı diye bakıoruz. about page'te. def test_TC005_assert_url(self): self.assertTrue('about' in self.about.driver.current_url)
class TestAbout(TestPyOrgBase): """ TBD """ def setUp(self): self.about = AboutPage(self.driver) def test_TC003_upcoming_events_check(self): self.about.assert_elem_text(AboutPageLocators.UPCOMING_EVENTS, 'Upcoming Events') def test_TC005_assert_url(self): self.assertTrue('about' in self.about.driver.current_url)
class TestAbout(TestPyOrgBase): """ TBD """ def setUp(self): # super().setUpClass() self.about = AboutPage(TestAbout.driver) def test_TC003_verify_upcoming_events_section_present(self): self.about.assert_elem_text(AboutPageLocators.UPCOMING_EVENTS, 'Upcoming Events') def test_TC005_assert_url(self): # self.assertTrue('about___' in self.about.driver.current_url) assert 'about' in self.about.driver.current_url