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]"))
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])
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])
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]"))