def test_TC_Member_Edit_19_View_All_Member_List(self): Member_Edit_Actions.Navigate_Member_Edit(self) General_Actions.view_all(self) no_break_page = self.driver.title self.assertEqual(no_break_page, "Member List", "Page breaks after clicking All button.") print( "Expected Results: Page does not break after clicking All button." + "<br>")
def test_TC_List_Promotion_Mission_05_View_All_Member_Promotion(self): Promotion_Mission_Actions.Navigate_Promotion_Mission(self) General_Actions.view_all(self) # Assert no_break_page = self.driver.title self.assertEqual(no_break_page, "Member Promotion", "Page breaks after clicking All button.") print( "Expected Results: Page does not break after clicking All button." + "<br>")
def TC_List_Promotion_Banner_03_Delete_Activity_Announcement_List(self): Promotion_Banner_Actions.Navigate_Promotion_Banner(self) print("<li>" + "Click on delete icon" + "</li>" + "<br>") self.driver.find_element_by_class_name(Promotion_Banner_Element.delete_announcement_icon).click() # Assert General_Actions.Assert_Delete_Confirmation_Dialog(self) print("Expected Results: Delete Confirmation Dialog Box popped out." + "<br>")
def test_TC_Member_Levels_03_Delete_Member_Levels(self): Member_Levels_Actions.Navigate_Member_Levels(self) print("<li>" + "Click on delete button" + "</li>" + "<br>") self.driver.find_element_by_xpath( Member_Levels_Element.delete_member_level_button).click() # Wait and assert delete confirmation dialog box displayed General_Actions.Assert_Delete_Confirmation_Dialog(self)
def TC_List_Promotion_Banner_04_Search_Activity_Announcement_List(self): Promotion_Banner_Actions.Navigate_Promotion_Banner(self) print("<li>" + "Insert Title" + "</li>" + "<br>") self.driver.find_element_by_class_name(Promotion_Banner_Element.title_filter_field).send_keys(Promotion_Banner_Data.title_filter) print("<li>" + "Click on Search button" + "</li>" + "<br>") self.driver.find_element_by_class_name(Promotion_Banner_Element.search_filter_button).click() # Assert General_Actions.Assert_Filter_Results(self)
def test_TC_Member_Levels_01_Search_Member_Login_Log(self): Member_Log_Actions.Navigate_Member_Log(self) print("<li>" + "Insert Member Name" + "</li>" + "<br>") self.driver.find_element_by_id(Member_Log_Element.member_name_filter_field).send_keys(Member_Data.filter_name) print("<li>" + "Click on search icon" + "</li>" + "<br>") self.driver.find_element_by_xpath(Member_Log_Element.filter_search_button).click() # Assert General_Actions.Assert_Filter_Results(self)
def test_TC_Promotion_Mission_03_Search_Member_Promotion(self): Promotion_Mission_Actions.Navigate_Promotion_Mission(self) print("<li>" + "Insert Member Name = ABCDEFGSELENIUM" + "</li>" + "<br>") self.driver.find_element_by_id( Promotion_Mission_Element.member_filter_field).send_keys( Promotion_Mission_Data.member_name_filter) print("<li>" + "Click on Search button" + "</li>" + "<br>") self.driver.find_element_by_class_name( General_Element.filter_search_button).click() # Assert General_Actions.Assert_Filter_Results(self)
def Navigate_WM(self): Login_Actions.valid_login_flow(self) print("<li>" + "Click on 'Report' dropdown" + "</li>" + "<br>") self.driver.find_element_by_xpath(Report_Element.report).click() betting_record = EC.presence_of_element_located((By.XPATH, Betting_Record_Element.betting_record)) WebDriverWait(self.driver, 10).until(betting_record) print("<li>" + "Click on 'Betting Record' dropdown" + "</li>" + "<br>") self.driver.find_element_by_xpath(Betting_Record_Element.betting_record).click() wm = EC.presence_of_element_located((By.XPATH, Betting_Record_WM_Betting_Record_Element.WM)) WebDriverWait(self.driver, 10).until(wm) General_Actions.Scroll_Page_to_Bottom(self) print("<li>" + "Select 'WM Betting Record'" + "</li>" + "<br>") self.driver.find_element_by_xpath(Betting_Record_WM_Betting_Record_Element.WM).click() wm_page = self.driver.title self.assertEqual(wm_page, "Wm", "User is not able to navigate to WM Betting Record Page.")
def test_TC_List_Promotion_03_Delete_Promotion(self): List_Promotion_Actions.Navigate_List_Promotion(self) print("<li>" + "Click on edit icon" + "</li>" + "<br>") self.driver.find_element_by_class_name( List_Promotion_Element.delete_promotion_button).click() General_Actions.Assert_Delete_Confirmation_Dialog(self)