本文整理汇总了Python中addons_site.AddonsDetailsPage.get_text方法的典型用法代码示例。如果您正苦于以下问题:Python AddonsDetailsPage.get_text方法的具体用法?Python AddonsDetailsPage.get_text怎么用?Python AddonsDetailsPage.get_text使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类addons_site.AddonsDetailsPage
的用法示例。
在下文中一共展示了AddonsDetailsPage.get_text方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_get_author_children_locators
# 需要导入模块: from addons_site import AddonsDetailsPage [as 别名]
# 或者: from addons_site.AddonsDetailsPage import get_text [as 别名]
def test_get_author_children_locators(self, testsetup): #ok in impala
tab_mix_plus_page = AddonsDetailsPage(testsetup, "Tab Mix Plus")
i = 1
author_list = [ tab_mix_plus_page.get_text("//h4[@class='author']/a[%i]" % (i+1))
for i in range(tab_mix_plus_page.selenium.get_xpath_count("//h4[@class='author']/a")) ]
#These tests are for Firebug data
#Assert.equal(5, len(author_locator))
#Assert.equal("Joe Hewitt",self.selenium.get_text("//h4[@class='author']/a[1]"))
#Assert.equal("johnjbarton",self.selenium.get_text("//h4[@class='author']/a[2]"))
#Assert.equal("robcee",self.selenium.get_text("//h4[@class='author']/a[3]"))
#Assert.equal("FirebugWorkingGroup",self.selenium.get_text("//h4[@class='author']/a[4]"))
#Assert.equal("Jan Odvarko",self.selenium.get_text("//h4[@class='author']/a[5]"))
#These tests are for
Assert.equal(2, len(author_list))
Assert.equal("onemen",author_list[0])
Assert.equal("Gary Reyes",author_list[1])
示例2: test_first_author_name
# 需要导入模块: from addons_site import AddonsDetailsPage [as 别名]
# 或者: from addons_site.AddonsDetailsPage import get_text [as 别名]
def test_first_author_name(self, testsetup): #ok in impala
#Firebug test
#Assert.equal("Joe Hewitt",self.selenium.get_text("//h4[@class='author']/a[1]"))
#Tab Mix Plus test
tab_mix_plus_page = AddonsDetailsPage(testsetup, "Tab Mix Plus")
Assert.equal("onemen",tab_mix_plus_page.get_text("//h4[@class='author']/a[1]"))