def test_projects_links_are_visible(self, mozwebqa): projects_page = Projects(mozwebqa) projects_page.go_to_page() bad_links = [] for link in projects_page.projects_links_list: if not projects_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_projects_links_are_visible(self, mozwebqa): projects_page = Projects(mozwebqa) projects_page.go_to_page() bad_links = [] for link in projects_page.projects_links_list: if not projects_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))