def __init__(self, testsetup, product=None): ''' Creates a new instance of the class and gets the page ready for testing ''' CrashStatsBasePage.__init__(self, testsetup) if product is None: self.selenium.get(self.base_url)
def __init__(self, base_url, selenium, product=None): ''' Creates a new instance of the class and gets the page ready for testing ''' CrashStatsBasePage.__init__(self, base_url, selenium) if product is None: self.selenium.get(self.base_url) self.wait_for_page_to_load()
def __init__(self, testsetup, element): CrashStatsBasePage.__init__(self, testsetup) self._root_element = element
def __init__(self, base_url, selenium, element): CrashStatsBasePage.__init__(self, base_url, selenium) self._root_element = element
def __init__(self, testsetup): CrashStatsBasePage.__init__(self, testsetup) self.selenium.get(self.base_url + '/products/')
def __init__(self, base_url, selenium): CrashStatsBasePage.__init__(self, base_url, selenium)
def __init__(self, testsetup): CrashStatsBasePage.__init__(self, testsetup)
def __init__(self, base_url, selenium): CrashStatsBasePage.__init__(self, base_url, selenium) WebDriverWait(self.selenium, self.timeout).until(lambda s: s.find_element(*self._summary_table_locator).is_displayed())