def test_copy_audience_multiple_criteria_to_other_audience(self): section = self.__class__.__name__ project_name = self.configAB[section]["project_name"] audience_name_multiple_source = self.configAB[section][ "audience_name_multiple_source"] audience_name_multiple_dest = self.configAB[section][ "audience_name_multiple_dest"] home_page = HomePage(self.webdriver, self.config) home_page.searchProjects(project_name) project_page = ProjectPage(self.webdriver, self.config) project_page.audience_menu_icon(audience_name_multiple_source).click() project_page.audienceEditIcon(audience_name_multiple_source) audience_page = AudiencePage(self.webdriver, self.config) audience_page.copy_multiple_audience_criteria_within_self() self.webdriver.find_element_by_xpath( "//div[@class='sources-panel']/div[1]").click() project_page.audience_menu_icon(audience_name_multiple_dest).click() project_page.audienceEditIcon(audience_name_multiple_dest) sleep(5) self.webdriver.find_element_by_xpath( "//div[text()='Insert Copied Criteria']").click() audience_page.delete_audience_criteria("Demographic Data") audience_page.delete_audience_criteria("Location Data")
def test_copy_audience_single_criteria(self): section = self.__class__.__name__ project_name = self.configAB[section]["project_name"] audience_name_single = self.configAB[section][ "audience_name_single_source"] home_page = HomePage(self.webdriver, self.config) project_page = ProjectPage(self.webdriver, self.config) home_page.searchProjects(project_name) project_page.audience_menu_icon(audience_name_single).click() project_page.audienceEditIcon(audience_name_single) audience_page = AudiencePage(self.webdriver, self.config) audience_page.copy_audience_criteria_within_self("Demographic Data") self.webdriver.find_element_by_xpath( "//div[text()='Insert Copied Criteria']").click() audience_page.delete_audience_criteria("Demographic Data")