def setUpClass(cls): """Method to initiate class level objects. This method initiates Firefox WebDriver, WebDriverWait and the corresponding POM objects for this Test Class """ firefox_options = Options() firefox_options.add_argument('-headless') cls.driver = webdriver.Firefox(firefox_options=firefox_options) cls.driver.maximize_window() cls.home_page = HomePage(cls.driver) cls.authentication_page = AuthenticationPage(cls.driver) cls.wait = WebDriverWait(cls.driver, 5) super(TestAccessControl, cls).setUpClass()
def __init__(self, driver): self.driver = driver self.home_page = HomePage(self.driver) self.elements = EventsPageLocators() super(EventsPage, self).__init__(driver)
def __init__(self, driver): self.driver = driver self.home_page = HomePage(self.driver) self.elements = CompletedShiftsPageLocators() super(CompletedShiftsPage, self).__init__(driver)
def __init__(self, driver): self.driver = driver self.home_page = HomePage(self.driver) self.sign_up_elements = EventSignUpPageLocators() self.manage_elements = ManageShiftPageLocators() super(ManageShiftPage, self).__init__(driver)
def __init__(self, driver): self.driver = driver self.home_page = HomePage(self.driver) self.elements = VolunteerReportPageLocators() super(VolunteerReportPage, self).__init__(driver)
def __init__(self, driver): self.driver = driver self.home_page = HomePage(self.driver) self.elements = AdministratorReportPageLocators() super(AdministratorReportPage, self).__init__(driver)
def setUpClass(cls): cls.driver = webdriver.Firefox() cls.driver.maximize_window() cls.home_page = HomePage(cls.driver) cls.authentication_page = AuthenticationPage(cls.driver) super(CheckContentAndRedirection, cls).setUpClass()