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


Python AddonsDetailsPage.is_element_present方法代码示例

本文整理汇总了Python中addons_site.AddonsDetailsPage.is_element_present方法的典型用法代码示例。如果您正苦于以下问题:Python AddonsDetailsPage.is_element_present方法的具体用法?Python AddonsDetailsPage.is_element_present怎么用?Python AddonsDetailsPage.is_element_present使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在addons_site.AddonsDetailsPage的用法示例。


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

示例1: test_icon_locator

# 需要导入模块: from addons_site import AddonsDetailsPage [as 别名]
# 或者: from addons_site.AddonsDetailsPage import is_element_present [as 别名]
 def test_icon_locator(self, testsetup): #broken in impala
     #Firebug icon
     #image_url = "https://static-cdn.addons.mozilla.net/en-US/firefox/images/addon_icon/1843-32.png?modified=1300780225"   
     #Tab Mix Plus icon        
     tab_mix_plus_page = AddonsDetailsPage(testsetup, "Tab Mix Plus")
     image_url = "https://gs1.adn.edgecastcdn.net/801237/addons-cdn.allizom.org/en-US/firefox/images/addon_icon/1122-32.png?modified=1305054615" #?modified=1305054615"     
     Assert.true(tab_mix_plus_page.is_element_present("css=input[type=img], [src=" +  image_url + "]"))
开发者ID:Marlena,项目名称:python,代码行数:9,代码来源:test_debug_addons_details_page.py

示例2: test_contribute_locator

# 需要导入模块: from addons_site import AddonsDetailsPage [as 别名]
# 或者: from addons_site.AddonsDetailsPage import is_element_present [as 别名]
 def test_contribute_locator(self, testsetup): 
     tab_mix_plus_page = AddonsDetailsPage(testsetup, "Tab Mix Plus") 
     Assert.true(tab_mix_plus_page.is_element_present("css=a[id='contribute-button']"))
开发者ID:Marlena,项目名称:python,代码行数:5,代码来源:test_debug_addons_details_page.py

示例3: test_install_locator

# 需要导入模块: from addons_site import AddonsDetailsPage [as 别名]
# 或者: from addons_site.AddonsDetailsPage import is_element_present [as 别名]
 def test_install_locator(self, testsetup):    
     tab_mix_plus_page = AddonsDetailsPage(testsetup, "Tab Mix Plus") 
     Assert.true(tab_mix_plus_page.is_element_present("css=p[class='install-button'] > a"))
开发者ID:Marlena,项目名称:python,代码行数:5,代码来源:test_debug_addons_details_page.py

示例4: test_ratings_locator

# 需要导入模块: from addons_site import AddonsDetailsPage [as 别名]
# 或者: from addons_site.AddonsDetailsPage import is_element_present [as 别名]
 def test_ratings_locator(self, testsetup): 
     tab_mix_plus_page = AddonsDetailsPage(testsetup, "Tab Mix Plus")
     Assert.true(tab_mix_plus_page.is_element_present("css=span[itemprop='rating']"))
开发者ID:Marlena,项目名称:python,代码行数:5,代码来源:test_debug_addons_details_page.py

示例5: test_summary_locator

# 需要导入模块: from addons_site import AddonsDetailsPage [as 别名]
# 或者: from addons_site.AddonsDetailsPage import is_element_present [as 别名]
 def test_summary_locator(self, testsetup): 
     #This was written as the details page was being upgraded, thus 2 locators.
     new_impala_summary_locator = "css=p[id=addon-summary]"
     old_zamboni_summary_locator = "css=div[id=addon-summary]>p"
     tab_mix_plus_page = AddonsDetailsPage(testsetup, "Tab Mix Plus")
     Assert.true(tab_mix_plus_page.is_element_present(old_zamboni_summary_locator))
开发者ID:Marlena,项目名称:python,代码行数:8,代码来源:test_debug_addons_details_page.py

示例6: test_author_group_locator

# 需要导入模块: from addons_site import AddonsDetailsPage [as 别名]
# 或者: from addons_site.AddonsDetailsPage import is_element_present [as 别名]
 def test_author_group_locator(self, testsetup): #ok in impala
     tab_mix_plus_page = AddonsDetailsPage(testsetup, "Tab Mix Plus")
     Assert.true(tab_mix_plus_page.is_element_present("//h4[@class='author']/a"))
开发者ID:Marlena,项目名称:python,代码行数:5,代码来源:test_debug_addons_details_page.py

示例7: test_addon_id_locator

# 需要导入模块: from addons_site import AddonsDetailsPage [as 别名]
# 或者: from addons_site.AddonsDetailsPage import is_element_present [as 别名]
 def test_addon_id_locator(self, testsetup): #ok in impala
     tab_mix_plus_page = AddonsDetailsPage(testsetup, "Tab Mix Plus")
     Assert.true(tab_mix_plus_page.is_element_present("//div[@data-id='1122']"))
开发者ID:Marlena,项目名称:python,代码行数:5,代码来源:test_debug_addons_details_page.py

示例8: test_version_number_locator

# 需要导入模块: from addons_site import AddonsDetailsPage [as 别名]
# 或者: from addons_site.AddonsDetailsPage import is_element_present [as 别名]
 def test_version_number_locator(self, testsetup):   #ok in impala 
     tab_mix_plus_page = AddonsDetailsPage(testsetup, "Tab Mix Plus")
     Assert.true(tab_mix_plus_page.is_element_present("css=span.version"))       
开发者ID:Marlena,项目名称:python,代码行数:5,代码来源:test_debug_addons_details_page.py


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