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)
예제 #2
0
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')

    def test_TC005_assert_url(self):
        # self.assertTrue('about___' in self.about.driver.current_url)
        assert 'about' in self.about.driver.current_url
예제 #3
0
class TestPyOrgAboutPage(unittest.TestCase):
    def setUp(self):
        chrome_options = webdriver.ChromeOptions()
        chrome_options.add_argument('headless')
        chrome_options.add_argument('window-size=1920x1080')
        self.driver = webdriver.Chrome(options=chrome_options)
        self.aboutpage = AboutPage(self.driver)

    def test_TC003_verify_upcoming_events_section_present(self):
        self.assertTrue(
            self.aboutpage.fetch_element(
                AboutPageLocators.UPCOMING_EVENTS_SECTION).text ==
            "Upcoming Events")

    def tearDown(self):
        self.driver.close()
예제 #4
0
 def setUp(self):
     super().setUp()
     self.about = AboutPage(self.driver)
예제 #5
0
 def setUp(self):
     chrome_options = webdriver.ChromeOptions()
     chrome_options.add_argument('headless')
     chrome_options.add_argument('window-size=1920x1080')
     self.driver = webdriver.Chrome(options=chrome_options)
     self.aboutpage = AboutPage(self.driver)
예제 #6
0
 def setUp(self):
     # super().setUpClass()
     self.about = AboutPage(TestAbout.driver)
 def setUp(self):
     self.about = AboutPage(self.driver)