本文整理匯總了Python中addons_base_page.AddonsBasePage.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python AddonsBasePage.__init__方法的具體用法?Python AddonsBasePage.__init__怎麽用?Python AddonsBasePage.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類addons_base_page.AddonsBasePage
的用法示例。
在下文中一共展示了AddonsBasePage.__init__方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from addons_base_page import AddonsBasePage [as 別名]
# 或者: from addons_base_page.AddonsBasePage import __init__ [as 別名]
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()
示例2: __init__
# 需要導入模塊: from addons_base_page import AddonsBasePage [as 別名]
# 或者: from addons_base_page.AddonsBasePage import __init__ [as 別名]
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
示例3: __init__
# 需要導入模塊: from addons_base_page import AddonsBasePage [as 別名]
# 或者: from addons_base_page.AddonsBasePage import __init__ [as 別名]
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()
示例4: __init__
# 需要導入模塊: from addons_base_page import AddonsBasePage [as 別名]
# 或者: from addons_base_page.AddonsBasePage import __init__ [as 別名]
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)")
示例5: __init__
# 需要導入模塊: from addons_base_page import AddonsBasePage [as 別名]
# 或者: from addons_base_page.AddonsBasePage import __init__ [as 別名]
def __init__(self, testsetup, index):
AddonsBasePage.__init__(self, testsetup)
self.index = index
示例6: __init__
# 需要導入模塊: from addons_base_page import AddonsBasePage [as 別名]
# 或者: from addons_base_page.AddonsBasePage import __init__ [as 別名]
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))
示例7: __init__
# 需要導入模塊: from addons_base_page import AddonsBasePage [as 別名]
# 或者: from addons_base_page.AddonsBasePage import __init__ [as 別名]
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()