def test_header_and_footer_links(self, mozwebqa, url="/firefox/fx/"): home_pg = MozillaBasePage(mozwebqa) home_pg.open(url) home_pg.click_tabzilla() for x in home_pg.get_tabzilla_header_links: print home_pg.is_element_present(x) for x in home_pg.header_links: print home_pg.is_element_present(x) for x in home_pg.footer_support_links: print home_pg.is_element_present(x) for x in home_pg.footer_desktop_links: print home_pg.is_element_present(x) for x in home_pg.footer_social_links: print home_pg.is_element_present(x) for x in home_pg.footer_mobile_links: print home_pg.is_element_present(x) for x in home_pg.footer_release_download_links: print home_pg.is_element_present(x) for x in home_pg.footer_about_links: print home_pg.is_element_present(x) for x in home_pg.footer_addons_links: print home_pg.is_element_present(x) for x in home_pg.footer_legal_links: print home_pg.is_element_present(x)
def test_download_buttons(self, mozwebqa, url="/firefox/features/"): self.selenium = mozwebqa.selenium home_pg = MozillaBasePage(mozwebqa) home_pg.open(url) for x in home_pg.get_upper_download_links: print home_pg.get_text(x) print home_pg.is_element_present(x) print home_pg.is_element_visible(x)
def test_footer_newsletter_submission(self, mozwebqa, url="/firefox/features"): self.selenium = mozwebqa.selenium home_pg = MozillaBasePage(mozwebqa) home_pg.open(url) home_pg.type(home_pg.monthly_news_locator, home_pg.test_email_address) home_pg.click(home_pg.monthly_news_locator_button) home_pg.click(home_pg.inline_privacy_checkbox) home_pg.click(home_pg.sign_me_up_button, True) home_pg.is_element_present(home_pg.success_pane_locator)