本文整理汇总了Python中PageBase.PageBase类的典型用法代码示例。如果您正苦于以下问题:Python PageBase类的具体用法?Python PageBase怎么用?Python PageBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PageBase类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, player, msglvl=2):
"""
"""
print 'hello python '
PageBase.__init__(self, player, msglvl)
self.info('Page ' + os.path.basename(__file__))
self.addStrFmts(body_fmts, query_fmts)
示例2: __init__
def __init__(self, player, msglvl=2):
"""
"""
PageBase.__init__(self, player, msglvl)
self.info('Page ' + os.path.basename(__file__))
self.addStrFmts(body_fmts, query_fmts)
# TODO : setup replace mode
#self.m_isHash = True
self.m_replPOST = True
示例3: __init__
def __init__(self):
PageBase.__init__(self)
self.xroads6_login_page_elements = \
{
'User ID': 'id = username',
'Password': 'id = password',
'Submit': 'name = Submit'
}
global selenium
selenium = self.get_selenium2libraryExtend_instance()
示例4: __init__
def __init__(self, player, msglvl=2):
"""
"""
PageBase.__init__(self, player, msglvl)
# TODO : add your page name
self.info('Page ' + os.path.basename(__file__))
# add body format
for (k, v) in body_fmts.items():
self.addStrBodyFmt(k, v)
# add query format
for (k, v) in query_fmts.items():
self.addStrQueryFmt(k, v)
示例5: __init__
def __init__(self):
self.xroads6_home_page_elements = \
{
'Home': "xpath=//a[@id='navcenterHome']",
'Admin': 'id=navcenterAdmin',
'Right Arrow': "xpath=//td[@class='main_nav_tab'][4]",
'Navigation Frame': 'name=NavFrame',
'Reports & Analysis': "xpath=//a[@name='navcenterBI']"
}
global selenium
selenium = PageBase.get_selenium2libraryExtend_instance()
示例6: __init__
def __init__(self):
self.xroads6_admin_page_elements = \
{
'Menu Frame': 'name=MenuFrame',
'User': 'id=_celllItem23',
'User_Profile': 'id=_celllItem22',
'User_Profile_Add': 'id=_celllItem18',
'User_Profile_Modify': 'id=_celllItem19',
'User_Profile_Delete': 'id=_celllItem21',
'Company': '_celllItem21',
'Company_Profile': 'id=_celllItem6',
'Company_Profile_Add': 'id=_celllItem2',
'Company_Profile_Modify': 'id=_celllItem3',
'Company_Profile_Delete': 'id=_celllItem5'
}
global selenium
selenium = PageBase.get_selenium2libraryExtend_instance()
示例7: __init__
def __init__(self, player, msglvl=2):
"""
"""
PageBase.__init__(self, player, msglvl)
self.info("Page " + os.path.basename(__file__))
self.addStrFmts(body_fmts, query_fmts)