def setUp(self): super(TestCaseFacebook, self).setUp() productPageURL = TT_Constants['Base_URL'] self.navigate_to_page(productPageURL) welcome_page_obj = WelcomePage(self.driver) welcome_page_obj.click_share_on_facebook_button() action = FacebookLoginPage(self.driver, TT_Constants['Facebook_Username'], TT_Constants['Facebook_Password']) action.login()
def setUp(self): super(TestCaseFacebook, self).setUp() productPageURL = TT_Constants['Base_URL'] self.navigate_to_page(productPageURL) welcome_page_obj = WelcomePage(self.driver) welcome_page_obj.click_share_on_facebook_button() action = FacebookLoginPage(self.driver, TT_Constants['Facebook_Username'], TT_Constants['Facebook_Password'] ) action.login()
def test_SearchFieldTest(self): search_field_obj = WelcomePage(self.driver) search_field_obj.search("office of inspector general")
def test_WelcomePageTest(self): welcome_page_obj = WelcomePage(self.driver) welcome_page_obj._verify_page()
def test_SblfTest(self): conference_spending_obj = WelcomePage(self.driver) conference_spending_obj.click_conference_spending_link()
def test_TestimoniesDocumentsTest(self): testimonies_documents_obj = WelcomePage(self.driver) testimonies_documents_obj.click_testimonies_documents_link()
def test_VacanciesTest(self): vacancies_obj = WelcomePage(self.driver) vacancies_obj.click_vacancies_link() vacancies_obj = VacanciesPage(self.driver) vacancies_obj.click_and_download()
def test_PrivacyAssessmentTest(self): privacy_assessment_obj = WelcomePage(self.driver) privacy_assessment_obj.click_privacy_assessment_link() privacy_assessment_obj = PrivacyAssessmentPage(self.driver) privacy_assessment_obj.click_and_download()
def test_OfficeManagementTest(self): office_management_obj = WelcomePage(self.driver) office_management_obj.click_office_management_link()
def test_WhistleblowerTest(self): whistleblower_obj = WelcomePage(self.driver) whistleblower_obj.click_whistleblower_link() whistleblower_obj = WhistleblowerPage(self.driver) whistleblower_obj.click_and_download()
def test_ReportsTest(self): reports_obj = WelcomePage(self.driver) reports_obj.click_reports_link() reports_obj = ReportsPage(self.driver) reports_obj.verify_reports_audit() reports_obj.verify_reports_other() reports_obj.verify_reports_congress() reports_obj.verify_reports_investigations() reports_obj.verify_reports_peer()
def test_EqualOpportunityTest(self): eeo_obj = WelcomePage(self.driver) eeo_obj.click_eeo_link() eeo_obj = EqualOpportunityPage(self.driver) eeo_obj.click_and_download()
def test_NewHireOrientationTest(self): new_hire_obj = WelcomePage(self.driver) new_hire_obj.click_new_hire_link() new_hire_obj = NewHireOrientationPage(self.driver) new_hire_obj.verify_before_report() self.driver.execute_script("window.history.go(-1)") new_hire_obj.verify_first_day() self.driver.execute_script("window.history.go(-1)") new_hire_obj.verify_no_fear() self.driver.execute_script("window.history.go(-1)") new_hire_obj.verify_pay_leave() self.driver.execute_script("window.history.go(-1)") new_hire_obj.verify_benefits() self.driver.execute_script("window.history.go(-1)") new_hire_obj.verify_workers_comp() self.driver.execute_script("window.history.go(-1)") new_hire_obj.verify_ethics() self.driver.execute_script("window.history.go(-1)") new_hire_obj.verify_whistleblower_protection() self.driver.execute_script("window.history.go(-1)") new_hire_obj.verify_hr_connect() self.driver.execute_script("window.history.go(-1)") new_hire_obj.verify_forgotten() self.driver.execute_script("window.history.go(-1)") new_hire_obj.verify_constitution_initiative() self.driver.execute_script("window.history.go(-1)") new_hire_obj.verify_abbreviations() self.driver.execute_script("window.history.go(-1)") """
def test_IgActTest(self): ig_act_obj = WelcomePage(self.driver) ig_act_obj.click_ig_act_link()
def test_SblfTest(self): sblf_obj = WelcomePage(self.driver) sblf_obj.click_sblf_link()
def test_OfficeAuditTest(self): office_audit_obj = WelcomePage(self.driver) office_audit_obj.click_office_audit_link()
def test_SearchFieldNoresultsTest(self): search_field_noresults_obj = WelcomePage(self.driver) search_field_noresults_obj.search_invalid("THISSEARCHPARAMETERSHOULDYIELDNORESULTS")
def test_RestoreActTest(self): restore_act_obj = WelcomePage(self.driver) restore_act_obj.click_restore_act_link()
def test_OfficeCounselTest(self): office_counsel_obj = WelcomePage(self.driver) office_counsel_obj.click_office_counsel_link()
def test_OrganizationalChartTest(self): organizational_chart_obj = WelcomePage(self.driver) organizational_chart_obj.click_organizational_chart_link()
def test_RecoveryActTest(self): recovery_act_obj = WelcomePage(self.driver) recovery_act_obj.click_recovery_act_link() recovery_act_obj = RecoveryActPage(self.driver) recovery_act_obj.verify_recovery_documents()
def test_InspectorGeneralTest(self): inspector_general_obj = WelcomePage(self.driver) inspector_general_obj.click_inspector_general_link()
def test_OfficeInvestigationsTest(self): office_investigations_obj = WelcomePage(self.driver) office_investigations_obj.click_office_investigations_link()
def test_PlanningDocumentsTest(self): planning_documents_obj = WelcomePage(self.driver) planning_documents_obj.click_planning_documents_link() planning_documents_obj = PlanningDocumentsPage(self.driver) planning_documents_obj.verify_update_content()
def test_SearchFieldEmptyTest(self): search_field_empty_obj = WelcomePage(self.driver) search_field_empty_obj.search_empty()
def test_ManagementChallengesTest(self): management_challenges_obj = WelcomePage(self.driver) management_challenges_obj.click_management_challenges_link()
def test_FraudAlertsPageTest(self): fraud_alerts_obj = WelcomePage(self.driver) fraud_alerts_obj.click_fraud_alerts_link() fraud_alerts_obj = FraudAlertsPage(self.driver) fraud_alerts_obj.click_and_download() fraud_alerts_obj.verify_securities() self.driver.execute_script("window.history.go(-1)") fraud_alerts_obj.verify_securities_scam() self.driver.execute_script("window.history.go(-1)") fraud_alerts_obj.verify_securities_phony() self.driver.execute_script("window.history.go(-1)") fraud_alerts_obj.verify_historical_bond() self.driver.execute_script("window.history.go(-1)") fraud_alerts_obj.verify_bank_instrument() self.driver.execute_script("window.history.go(-1)") fraud_alerts_obj.verify_protect_yourself() self.driver.execute_script("window.history.go(-1)") fraud_alerts_obj.verify_other_fraud() self.driver.execute_script("window.history.go(-1)") fraud_alerts_obj.verify_against_misuse() self.driver.execute_script("window.history.go(-1)") fraud_alerts_obj.verify_bogus_sight() self.driver.execute_script("window.history.go(-1)")