def __init__(self, testsetup, app_name=False): Base.__init__(self, testsetup) Sorter.__init__(self, testsetup) if app_name: self._page_title = '%s | Firefox Marketplace' % app_name self.app_name = app_name else: self._page_title = 'Search Results | Firefox Marketplace'
def __init__(self, testsetup, app_name=False): Base.__init__(self, testsetup) Sorter.__init__(self, testsetup) if app_name: self._page_title = '%s | Firefox Marketplace' % app_name self.app_name = app_name else: self._page_title = 'Search Results | Firefox Marketplace' self.wait_for_element_present(*self._search_results_section_locator)
def sort_by(self, category, attribute): from pages.desktop.regions.sorter import Sorter Sorter(self).sort_by(category)
def sorted_by(self): return Sorter(self.testsetup).sorted_by
def click_sort_by(self, type): Sorter(self.testsetup).sort_by(type)
def __init__(self, testsetup, app_name=None): Base.__init__(self, testsetup) Sorter.__init__(self, testsetup) self.app_name = app_name
def sorter(self): from pages.desktop.regions.sorter import Sorter return Sorter(self.base_url, self.selenium)
def click_sort_by(self, type): from pages.desktop.regions.sorter import Sorter Sorter(self.base_url, self.selenium).sort_by(type)
def sorter(self): from pages.desktop.regions.sorter import Sorter return Sorter(self.testsetup)
def sorted_by(self): return Sorter(self.base_url, self.selenium).sorted_by
def click_sort_by(self, type): Sorter(self.base_url, self.selenium).sort_by(type)
def __init__(self, testsetup): Base.__init__(self, testsetup) Sorter.__init__(self, testsetup) self.wait_for_element_present(*self._sorter_header_locator)
def click_sort_by(self, type): from pages.desktop.regions.sorter import Sorter Sorter(self.testsetup).sort_by(type)
def __init__(self, testsetup, search_term=False): Base.__init__(self, testsetup) Sorter.__init__(self, testsetup) if search_term and search_term is not "": self._page_title = "%s | %s" % (search_term, self._page_title)