Ejemplo n.º 1
0
 def test_navbar_links_are_visible(self, mozwebqa):
     page = MozillaBasedPage(mozwebqa)
     page.go_to_page()
     bad_links = []
     for link in page.Header.nav_links_list:
         if not 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))
Ejemplo n.º 2
0
 def test_navbar_links_are_visible(self, mozwebqa):
     page = MozillaBasedPage(mozwebqa)
     page.go_to_page()
     bad_links = []
     for link in page.Header.nav_links_list:
         if not page.is_element_visible(*link.get('locator')):
             bad_links.append('The link at %s is not visible' % link.get('locator')[1:])
     assert [] == bad_links
Ejemplo n.º 3
0
 def test_navbar_links_are_visible(self, mozwebqa):
     page = MozillaBasedPage(mozwebqa)
     page.go_to_page()
     bad_links = []
     for link in page.Header.nav_links_list:
         if not page.is_element_visible(*link.get('locator')):
             bad_links.append('The link at %s is not visible' % link.get('locator')[1:])
     assert [] == bad_links
Ejemplo n.º 4
0
 def test_main_feature_links_are_visible(self, mozwebqa):
     mozillabased_page = MozillaBasedPage(mozwebqa)
     mozillabased_page.go_to_page()
     bad_links = []
     for link in mozillabased_page.main_feature_link_list:
         if not mozillabased_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))
Ejemplo n.º 5
0
 def test_navbar_links_are_visible(self, mozwebqa):
     page = MozillaBasedPage(mozwebqa)
     page.go_to_page()
     bad_links = []
     for link in page.Header.nav_links_list:
         if not 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))
Ejemplo n.º 6
0
 def test_tabzilla_links_are_visible(self, mozwebqa):
     page = MozillaBasedPage(mozwebqa)
     page.go_to_page()
     Assert.true(page.header.is_tabzilla_panel_visible)
     page.header.toggle_tabzilla_dropdown()
     bad_links = []
     for link in page.header.tabzilla_links_list:
         if not 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))
Ejemplo n.º 7
0
 def test_tabzilla_links_are_visible(self, mozwebqa):
     page = MozillaBasedPage(mozwebqa)
     page.go_to_page()
     Assert.true(page.header.is_tabzilla_panel_visible)
     page.header.toggle_tabzilla_dropdown()
     bad_links = []
     for link in page.header.tabzilla_links_list:
         if not 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))
Ejemplo n.º 8
0
 def test_main_feature_links_are_visible(self, mozwebqa):
     mozillabased_page = MozillaBasedPage(mozwebqa)
     mozillabased_page.go_to_page()
     bad_links = []
     for link in mozillabased_page.main_feature_link_list:
         if not mozillabased_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))