Exemplo n.º 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'
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 4
0
 def sort_by(self, category, attribute):
     from pages.desktop.regions.sorter import Sorter
     Sorter(self).sort_by(category)
Exemplo n.º 5
0
 def sorted_by(self):
     return Sorter(self.testsetup).sorted_by
Exemplo n.º 6
0
 def click_sort_by(self, type):
     Sorter(self.testsetup).sort_by(type)
Exemplo n.º 7
0
 def __init__(self, testsetup, app_name=None):
     Base.__init__(self, testsetup)
     Sorter.__init__(self, testsetup)
     self.app_name = app_name
Exemplo n.º 8
0
 def __init__(self, testsetup, app_name=None):
     Base.__init__(self, testsetup)
     Sorter.__init__(self, testsetup)
     self.app_name = app_name
Exemplo n.º 9
0
 def sorter(self):
     from pages.desktop.regions.sorter import Sorter
     return Sorter(self.base_url, self.selenium)
Exemplo n.º 10
0
 def click_sort_by(self, type):
     from pages.desktop.regions.sorter import Sorter
     Sorter(self.base_url, self.selenium).sort_by(type)
Exemplo n.º 11
0
 def sorter(self):
     from pages.desktop.regions.sorter import Sorter
     return Sorter(self.testsetup)
Exemplo n.º 12
0
 def sorted_by(self):
     return Sorter(self.base_url, self.selenium).sorted_by
Exemplo n.º 13
0
 def click_sort_by(self, type):
     Sorter(self.base_url, self.selenium).sort_by(type)
Exemplo n.º 14
0
 def __init__(self, testsetup):
     Base.__init__(self, testsetup)
     Sorter.__init__(self, testsetup)
     self.wait_for_element_present(*self._sorter_header_locator)
Exemplo n.º 15
0
 def click_sort_by(self, type):
     from pages.desktop.regions.sorter import Sorter
     Sorter(self.testsetup).sort_by(type)
Exemplo n.º 16
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)
Exemplo n.º 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)