def test_page_links_are_visible(self, mozwebqa): apps_page = Apps(mozwebqa) apps_page.go_to_page() bad_links = [] for link in apps_page.page_links_list: if not apps_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_page_links_are_visible(self, mozwebqa): apps_page = Apps(mozwebqa) apps_page.go_to_page() bad_links = [] for link in apps_page.page_links_list: if not apps_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))