Esempio n. 1
0
 def test_section_links_are_visible(self, mozwebqa):
     security_page = Security(mozwebqa)
     security_page.go_to_page()
     bad_links = []
     for link in security_page.section_links_list:
         if not security_page.is_element_visible(*link.get("locator")):
             bad_links.append("The link at %s is not visible" % link.get("locator")[1:])
     Assert.equal(0, len(bad_links), "%s bad links found: " % len(bad_links) + ", ".join(bad_links))
Esempio n. 2
0
 def test_images_are_visible(self, mozwebqa):
     security_page = Security(mozwebqa)
     security_page.go_to_page()
     bad_images = []
     for image in security_page.images_list:
         if not security_page.is_element_visible(*image.get("locator")):
             bad_images.append("The image at %s is not visible" % image.get("locator")[1:])
     Assert.equal(0, len(bad_images), "%s bad images found: " % len(bad_images) + ", ".join(bad_images))
Esempio n. 3
0
 def test_section_links_are_visible(self, mozwebqa):
     security_page = Security(mozwebqa)
     security_page.go_to_page()
     bad_links = []
     for link in security_page.section_links_list:
         if not security_page.is_element_visible(*link.get('locator')):
             bad_links.append('The link at %s is not visible' % link.get('locator')[1:])
     Assert.equal(0, len(bad_links), '%s bad links found: ' % len(bad_links) + ', '.join(bad_links))
Esempio n. 4
0
 def test_billboard_links_are_visible(self, mozwebqa):
     security_page = Security(mozwebqa)
     security_page.go_to_page()
     bad_links = []
     for link in security_page.billboard_links_list:
         if not security_page.is_element_visible(*link.get('locator')):
             bad_links.append('The link at %s is not visible' % link.get('locator')[1:])
     Assert.equal(0, len(bad_links), '%s bad links found: ' % len(bad_links) + ', '.join(bad_links))
Esempio n. 5
0
 def test_images_are_visible(self, mozwebqa):
     security_page = Security(mozwebqa)
     security_page.go_to_page()
     bad_images = []
     for image in security_page.images_list:
         if not security_page.is_element_visible(*image.get('locator')):
             bad_images.append('The image at %s is not visible' % image.get('locator')[1:])
     Assert.equal(0, len(bad_images), '%s bad images found: ' % len(bad_images) + ', '.join(bad_images))