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