Пример #1
0
    def test_header_and_footer_links_are_present(self):
        homepageBase = MozillaBasePage(self.selenium)
        homepageBase.selenium.open('/firefox/features/')

        for x in homepageBase.headers_list:
            homepageBase.selenium.get_text(x)
            self.assertTrue(homepageBase.is_element_present(x))

        for x in homepageBase.footer_features_list:
            homepageBase.selenium.get_text(x)
            self.assertTrue(homepageBase.is_element_present(x))

        for x in homepageBase.footer_social_media_list:
            homepageBase.selenium.get_text(x)
            self.assertTrue(homepageBase.is_element_present(x))

        for x in homepageBase.footer_mobile_list:
            homepageBase.selenium.get_text(x)
            self.assertTrue(homepageBase.is_element_present(x))

        for x in homepageBase.footer_support_list:
            homepageBase.selenium.get_text(x)
            self.assertTrue(homepageBase.is_element_present(x))

        for x in homepageBase.footer_addons_list:
            homepageBase.selenium.get_text(x)
            self.assertTrue(homepageBase.is_element_present(x))

        for x in homepageBase.footer_about_list:
            homepageBase.selenium.get_text(x)
            self.assertTrue(homepageBase.is_element_present(x))
Пример #2
0
	def test_header_and_footer_links_are_present(self):
		homepageBase = MozillaBasePage(self.selenium)
		homepageBase.selenium.open('/mobile/')
		
		for x in homepageBase.headers_list:
			homepageBase.selenium.get_text(x)
			self.assertTrue(homepageBase.is_element_present(x))
			
		for x in homepageBase.footer_features_list:
			homepageBase.selenium.get_text(x)
			self.assertTrue(homepageBase.is_element_present(x))
			
		for x in homepageBase.footer_social_media_list:
			homepageBase.selenium.get_text(x)
			self.assertTrue(homepageBase.is_element_present(x))
			
		for x in homepageBase.footer_mobile_list:
			homepageBase.selenium.get_text(x)
			self.assertTrue(homepageBase.is_element_present(x))
			
		for x in homepageBase.footer_support_list:
			homepageBase.selenium.get_text(x)
			self.assertTrue(homepageBase.is_element_present(x))
			
		for x in homepageBase.footer_addons_list:
			homepageBase.selenium.get_text(x)
			self.assertTrue(homepageBase.is_element_present(x))
			
		for x in homepageBase.footer_about_list:
			homepageBase.selenium.get_text(x)
			self.assertTrue(homepageBase.is_element_present(x))
Пример #3
0
    def test_header_and_footer_links_are_present(self):
        homepageBase = MozillaBasePage(self.selenium)
        homepageBase.go_to_about()
        [
            self.assertTrue(homepageBase.is_element_present(x))
            for x in homepageBase.headers_list
        ]

        [
            self.assertTrue(homepageBase.is_element_present(x))
            for x in homepageBase.footer_features_list
        ]

        [
            self.assertTrue(homepageBase.is_element_present(x))
            for x in homepageBase.footer_social_media_list
        ]

        [
            self.assertTrue(homepageBase.is_element_present(x))
            for x in homepageBase.footer_mobile_list
        ]

        [
            self.assertTrue(homepageBase.is_element_present(x))
            for x in homepageBase.footer_support_list
        ]

        [
            self.assertTrue(homepageBase.is_element_present(x))
            for x in homepageBase.footer_addons_list
        ]

        [
            self.assertTrue(homepageBase.is_element_present(x))
            for x in homepageBase.footer_about_list
        ]