Exemple #1
0
 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'
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 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)
Exemple #7
0
 def __init__(self, testsetup, app_name=None):
     Base.__init__(self, testsetup)
     Sorter.__init__(self, testsetup)
     self.app_name = app_name
 def __init__(self, testsetup, app_name=None):
     Base.__init__(self, testsetup)
     Sorter.__init__(self, testsetup)
     self.app_name = app_name
Exemple #9
0
 def sorter(self):
     from pages.desktop.regions.sorter import Sorter
     return Sorter(self.base_url, self.selenium)
Exemple #10
0
 def click_sort_by(self, type):
     from pages.desktop.regions.sorter import Sorter
     Sorter(self.base_url, self.selenium).sort_by(type)
Exemple #11
0
 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)
Exemple #14
0
 def __init__(self, testsetup):
     Base.__init__(self, testsetup)
     Sorter.__init__(self, testsetup)
     self.wait_for_element_present(*self._sorter_header_locator)
Exemple #15
0
 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)
Exemple #17
0
 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)