當前位置: 首頁>>代碼示例>>Python>>正文


Python addons_base_page.AddonsBasePage類代碼示例

本文整理匯總了Python中addons_base_page.AddonsBasePage的典型用法代碼示例。如果您正苦於以下問題:Python AddonsBasePage類的具體用法?Python AddonsBasePage怎麽用?Python AddonsBasePage使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了AddonsBasePage類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

 def __init__(self, testsetup, addon_name):
     #formats name for url
     self.addon_name = addon_name.replace(' ', '-').lower()
     AddonsBasePage.__init__(self, testsetup)
     self.selenium.open("%s/addon/%s" % (self.site_version, self.addon_name))
     if self.site_version == '/i':
         self._wait_for_reviews_to_load()
開發者ID:Dualtha,項目名稱:Addon-Tests,代碼行數:7,代碼來源:addons_site.py

示例2: __init__

 def __init__(self, testsetup, addon_name=None):
     #formats name for url
     AddonsBasePage.__init__(self, testsetup)
     if (addon_name != None):
         self.addon_name = addon_name.replace(' ', '-').lower()
         self.selenium.open("%s/addon/%s" % (self.site_version, self.addon_name))
         self._wait_for_reviews_and_other_addons_by_author_to_load()
     self._page_title = "%s :: Add-ons for Firefox" % self.current_page_breadcrumb
開發者ID:sergiumezei,項目名稱:Addon-Tests,代碼行數:8,代碼來源:addons_details_page.py

示例3: __init__

 def __init__(self, testsetup):
     ''' Creates a new instance of the class and gets the page ready for testing '''
     AddonsBasePage.__init__(self, testsetup)
     self.selenium.open("/")
     self.selenium.window_maximize()
開發者ID:vish-moz,項目名稱:Addon-Tests,代碼行數:5,代碼來源:addons_site.py

示例4: __init__

 def __init__(self, testsetup, path):
     AddonsBasePage.__init__(self, testsetup)
     self.selenium.open(testsetup.base_url + path)
     #resizing this page for elements that disappear when the window is < 1000
     self.selenium.get_eval("window.resizeTo(10000,10000); window.moveTo(0,0)")
開發者ID:otiliaanica,項目名稱:Addon-Tests,代碼行數:5,代碼來源:addons_site.py

示例5: __init__

 def __init__(self, testsetup, index):
     AddonsBasePage.__init__(self, testsetup)
     self.index = index
開發者ID:rakeshmick,項目名稱:Addon-Tests,代碼行數:3,代碼來源:addons_site.py

示例6: __init__

 def __init__(self, testsetup, addon_name):
     #formats name for url
     self.addon_name = addon_name.replace(' ', '-').lower()
     AddonsBasePage.__init__(self, testsetup)
     self.selenium.open("%s/addon/%s" % (self.site_version, self.addon_name))
開發者ID:bloodaxealin,項目名稱:Addon-Tests,代碼行數:5,代碼來源:addons_site.py

示例7: __init__

 def __init__(self, testsetup):
     """ Creates a new instance of the class and gets the page ready for testing """
     AddonsBasePage.__init__(self, testsetup)
     self.selenium.open("%s/" % self.site_version)
     self.selenium.window_maximize()
開發者ID:sergiumezei,項目名稱:Addon-Tests,代碼行數:5,代碼來源:addons_homepage.py


注:本文中的addons_base_page.AddonsBasePage類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。