当前位置: 首页>>代码示例>>Python>>正文


Python base.Base类代码示例

本文整理汇总了Python中pages.desktop.consumer_pages.base.Base的典型用法代码示例。如果您正苦于以下问题:Python Base类的具体用法?Python Base怎么用?Python Base使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Base类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

 def __init__(self, testsetup, app_name=False):
     Base.__init__(self, testsetup)
     if app_name:
         self._page_title = "%s | Firefox Marketplace" % app_name
         self.app_name = app_name
     else:
         self._page_title = "%s | Firefox Marketplace" % self.title
开发者ID:viorelaioia,项目名称:marketplace-tests,代码行数:7,代码来源:details.py

示例2: __init__

 def __init__(self, testsetup, app_name=False):
     Base.__init__(self, testsetup)
     self.wait_for_ajax_on_page_finish()
     if app_name:
         self._page_title = "%s | Firefox Marketplace" % app_name
         self.app_name = app_name
     else:
         self._page_title = "%s | Firefox Marketplace" % self.title
开发者ID:yoshiyokotani,项目名称:marketplace-tests,代码行数:8,代码来源:details.py

示例3: __init__

    def __init__(self, base_url, selenium):
        Base.__init__(self, base_url, selenium)

        if self.selenium.title != self._page_title:
            for handle in self.selenium.window_handles:
                self.selenium.switch_to_window(handle)
                WebDriverWait(self.selenium, self.timeout).until(lambda s: s.title)
        else:
            raise Exception('Page has not loaded')
开发者ID:diox,项目名称:marketplace-tests,代码行数:9,代码来源:payment_popup.py

示例4: __init__

 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)
开发者ID:AlinT,项目名称:marketplace-tests,代码行数:9,代码来源:search.py

示例5: __init__

 def __init__(self, testsetup, app_name=False, first_access=False):
     Base.__init__(self, testsetup)
     if first_access:
         self.wait_for_page_to_load()
     if app_name:
         self._page_title = "%s | Firefox Marketplace" % app_name
         self.app_name = app_name
     else:
         self._page_title = "%s | Firefox Marketplace" % self.title
开发者ID:AndreiH,项目名称:marketplace-tests,代码行数:9,代码来源:details.py

示例6: __init__

 def __init__(self, testsetup):
     Base.__init__(self, testsetup)
     self._main_window_handle = self.selenium.current_window_handle
     for handle in self.selenium.window_handles:
         self.selenium.switch_to.window(handle)
         # wait a bit for window ready
         time.sleep(2)
         if self.is_element_present(*self._email_input_locator):
             self.wait_for_element_visible(*self._email_input_locator)
             self._sign_in_window_handle = handle
             break
     else:
         raise Exception('Popup has not loaded')
开发者ID:AndreiH,项目名称:marketplace-tests,代码行数:13,代码来源:fxa.py

示例7: __init__

 def __init__(self, base_url, selenium, category_name):
     Base.__init__(self, base_url, selenium)
     self.wait_for_page_to_load()
     WebDriverWait(self.selenium, self.timeout).until(lambda s: category_name.title() == self.category_title)
     WebDriverWait(self.selenium, self.timeout).until(lambda s: len(self.apps) > 0)
     self._page_title = "%s | %s" % (category_name.title(), self._page_title)
开发者ID:davehunt,项目名称:marketplace-tests,代码行数:6,代码来源:category.py

示例8: __init__

 def __init__(self, base_url, selenium, app_name=None):
     Base.__init__(self, base_url, selenium)
     self.app_name = app_name
开发者ID:davehunt,项目名称:marketplace-tests,代码行数:3,代码来源:search.py

示例9: __init__

 def __init__(self, testsetup, element):
     Base.__init__(self, testsetup)
     self._root_element = element
开发者ID:AlinT,项目名称:marketplace-tests,代码行数:3,代码来源:reviews.py

示例10: __init__

 def __init__(self, testsetup, category_name):
     Base.__init__(self, testsetup)
     self._page_title = "%s | %s" % (category_name.title(), self._page_title)
     WebDriverWait(self.selenium, self.timeout).until(lambda s: len(self.apps_count) > 0)
开发者ID:udeepak,项目名称:marketplace-tests,代码行数:4,代码来源:category.py

示例11: __init__

 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)
开发者ID:ajalgaonkar,项目名称:marketplace-tests,代码行数:5,代码来源:search.py

示例12: __init__

 def __init__(self, testsetup, app_name=False):
     Base.__init__(self, testsetup)
     if app_name:
         self._page_title = "%s | Mozilla Marketplace" % app_name
开发者ID:fadyboy,项目名称:marketplace-tests,代码行数:4,代码来源:details.py

示例13: __init__

 def __init__(self, testsetup, app_name=None):
     Base.__init__(self, testsetup)
     self.app_name = app_name
开发者ID:ithompson4,项目名称:marketplace-tests,代码行数:3,代码来源:search.py

示例14: __init__

 def __init__(self, base_url, selenium, element):
     Base.__init__(self, base_url, selenium)
     self._root_element = element
开发者ID:davehunt,项目名称:marketplace-tests,代码行数:3,代码来源:reviews.py

示例15: __init__

 def __init__(self, testsetup, category_name):
     Base.__init__(self, testsetup)
     self._page_title = "%s | %s" % (category_name, self._page_title)
     self.wait_for_ajax_on_page_finish()
开发者ID:bebef1987,项目名称:marketplace-tests,代码行数:4,代码来源:category.py


注:本文中的pages.desktop.consumer_pages.base.Base类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。