def test_verify_Quarter(self):
        project_name = self.configAB["Quarter_on_criteria_builder"]["project_name"]
        audience_name = self.configAB["Quarter_on_criteria_builder"]["audience_name"]

        home_page = HomePage(self.webdriver, self.config)
        audience_page = AudiencePage(self.webdriver, self.config)
        project_page = ProjectPage(self.webdriver, self.config)
        home_page.searchProjects(project_name)
        sleep(10)
        project_page.audience_menu_icon(audience_name).click()
        project_page.audienceEditIcon(audience_name)
        sleep(10)
        data_env = audience_page.lbl_data_env().text
        # print("This is the value of data environement " + data_env)
        quarter_time = audience_page.Time_Period().text
        # print("This is the time period " + quarter_time)
        self.assertIn(quarter_time, data_env)
        audience_page.Time_Period_Edit().click()
        drp_quarter = audience_page.drp_Quarter()
        dd_quarter = Select(drp_quarter)
        dd_quarter.select_by_visible_text("Q2 2019")
        audience_page.btn_quarter_create().click()
        sleep(15)
        audience_page.save_audience_button().click()
        project_page.audience_menu_icon(audience_name).click()
        project_page.audienceEditIcon(audience_name)
        self.assertIn(quarter_time, data_env)
        sleep(10)

        data_env = audience_page.lbl_data_env().text
        # print("This is the value of data environement " + data_env)
        quarter_time = audience_page.Time_Period().text
        # print("This is the time period " + quarter_time)
        self.assertIn(quarter_time, data_env)
        audience_page.Time_Period_Edit().click()
        drp_quarter = audience_page.drp_Quarter()
        dd_quarter = Select(drp_quarter)
        dd_quarter.select_by_visible_text("Q1 2020")
        audience_page.btn_quarter_create().click()
        audience_page.save_audience_button().click()
        project_page.audience_menu_icon(audience_name).click()
        project_page.audienceEditIcon(audience_name)
        self.assertIn(quarter_time, data_env)
    def test_created_audience_timestamp(self):
        project_name = self.configAB["audience_timestamp"]["project_name"]
        audience_name = self.configAB["audience_timestamp"]["audience_name"]

        home_page = HomePage(self.webdriver, self.config)
        audience_page = AudiencePage(self.webdriver, self.config)
        home_page.searchProjects(project_name)

        project_page = ProjectPage(self.webdriver, self.config)
        project_page.audience_menu_icon(audience_name).click()
        project_page.audienceEditIcon(audience_name)
        sleep(10)
        actual_timestamp = self.webdriver.find_element_by_xpath("//div[contains(@class,'edit-when ng-scope')]").text
        # print("This is the actual timestamp " + actual_timestamp)
        date_time = audience_page.lbl_date_time().text
        user = audience_page.lbl_User().text
        data_env = audience_page.lbl_data_env().text
        expected_timestamp = "Last Created" + " " + date_time + " By " + user + " " + data_env
        assert actual_timestamp.startswith("Last Created")
        self.assertEqual(actual_timestamp, expected_timestamp)