本文整理汇总了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 + "]"))
示例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']"))
示例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"))
示例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']"))
示例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))
示例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"))
示例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']"))
示例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"))