def test_TC_SportM8_01_Navigate_to_M8_Sports_BeforeLogin(self):
     print("<b> Expected Results: Navigate to login page when accessing M8 Sports game without valid login. </b>" + "<br>")
     MainpageActions.Access_to_Mainpage(self)
     MainpageActions.Access_to_Sport(self)
     ProvidersActions.Access_to_SportM8_Page(self)
     ProvidersActions.Click_on_SportM8_Game(self)
     time.sleep(2)
     ProvidersActions.Assert_Login_Page(self)
 def test_TC_CasinoWM_01_Navigate_to_WM_Casino_BeforeLogin(self):
     print(
         "<b> Expected Results: Navigate to login page when accessing WM Casino game without valid login. </b>"
         + "<br>")
     MainpageActions.Access_to_Mainpage(self)
     MainpageActions.Access_to_Casino(self)
     ProvidersActions.Access_to_CasinoWM_Casino_Page(self)
     ProvidersActions.Click_on_CasinoWM_Game(self)
     time.sleep(2)
     ProvidersActions.Assert_Login_Page(self)
 def test_TC_SportM8_04_Quick_Transfer(self):
     print("<b> Expected Results: Able to perform quick transfer. </b>" + "<br>")
     LoginpageActions.Login_to_Mainpage(self)
     MainpageActions.Access_to_Sport(self)
     ProvidersActions.Access_to_SportM8_Page(self)
     ProvidersActions.Click_on_SportM8_Game(self)
     time.sleep(2)
     ProvidersActions.Quick_Transfer(self)
 def test_TC_SportM8_03_Enter_Game(self):
     print("<b> Expected Results: Able to access to gaming page. </b>" + "<br>")
     LoginpageActions.Login_to_Mainpage(self)
     MainpageActions.Access_to_Sport(self)
     ProvidersActions.Access_to_SportM8_Page(self)
     ProvidersActions.Click_on_SportM8_Game(self)
     time.sleep(2)
     ProvidersActions.Enter_Game(self)
 def test_TC_SportM8_02_Navigate_to_M8_Sports_AfterLogin(self):
     print("<b> Expected Results: Quick Transfer modal dialog is displayed when accessing M8 Sports game with valid login. </b>" + "<br>")
     LoginpageActions.Login_to_Mainpage(self)
     MainpageActions.Access_to_Sport(self)
     ProvidersActions.Access_to_SportM8_Page(self)
     ProvidersActions.Click_on_SportM8_Game(self)
     time.sleep(2)
     ProvidersActions.Assert_Quick_Transfer(self)
 def test_TC_CasinoBIG_02_Navigate_to_BIG_AfterLogin(self):
     print(
         "<b> Expected Results: Quick Transfer modal dialog is displayed when accessing Big Gaming game with valid login. </b>"
         + "<br>")
     LoginpageActions.Login_to_Mainpage(self)
     MainpageActions.Access_to_Casino(self)
     ProvidersActions.Access_to_CasinoBigGaming_Page(self)
     ProvidersActions.Click_on_CasinoBigGaming_Game(self)
     time.sleep(2)
     ProvidersActions.Assert_Quick_Transfer(self)
Exemple #7
0
 def Login_to_Mainpage(self):
     MainpageActions.Access_to_Mainpage(self)
     # Login with registered username and password
     print("<li>" + "Click on Log In button" + "</li>" + "<br>")
     self.driver.find_element_by_xpath(LogInElement.login_button).click()
     time.sleep(3)
     print("<li>" + "Insert Username: "******"</li>" +
           "<br>")
     self.driver.find_element_by_id(LogInElement.username_field).send_keys(
         LoginData.username)
     print("<li>" + "Insert Password: "******"</li>" +
           "<br>")
     self.driver.find_element_by_id(LogInElement.password_field).send_keys(
         LoginData.password)
     print("<li>" + "Click on Log in button" + "</li>" + "<br>")
     self.driver.find_element_by_class_name(
         LogInElement.confirm_login_button).click()
     # Wait the page loads
     time.sleep(2)
     # Wait the page loads
     wait_main_page = EC.element_to_be_clickable(
         (By.CLASS_NAME,
          MainpageElement.announcement_modal_dialog_close_button))
     WebDriverWait(self.driver, 20).until(wait_main_page)
     # Close Announcement dialog box
     print("<li>" + "Close the Announcement modal dialog" + "</li>" +
           "<br>")
     self.driver.find_element_by_class_name(
         MainpageElement.announcement_modal_dialog_close_button).click()
     self.driver.implicitly_wait(10)
     time.sleep(2)
     # Assert
     login_mainpage = self.driver.find_element_by_class_name(
         LogInElement.logout_button).is_displayed()
     self.assertTrue(login_mainpage,
                     "User is not able to login to the account.")
Exemple #8
0
 def test_TC_Main_01_Navigate_to_Main_Page(self):
     print(
         "<b> Expected Results: Able to access to main page without breaking. </b>"
         + "<br>")
     MainpageActions.Access_to_Mainpage(self)
Exemple #9
0
 def test_TC_Main_08_Access_to_Sports_Page_viaSports(self):
     print("<b> Expected Results: Able to access to Sports page. </b>" +
           "<br>")
     MainpageActions.Access_to_Mainpage(self)
     MainpageActions.Navigate_to_Sports(self)
Exemple #10
0
 def test_TC_Main_07_Access_to_SlotGames_Page_viaSlotGames(self):
     print("<b> Expected Results: Able to access to Slot Games page. </b>" +
           "<br>")
     MainpageActions.Access_to_Mainpage(self)
     MainpageActions.Navigate_to_Slot_Games(self)
Exemple #11
0
 def test_TC_Main_06_Access_to_Casino_Page_viaLiveCasino(self):
     print("<b> Expected Results: Able to access to Casino page. </b>" +
           "<br>")
     MainpageActions.Access_to_Mainpage(self)
     MainpageActions.Navigate_to_Live_Casino(self)
Exemple #12
0
 def test_TC_Main_05_Access_to_Promo_Page_viaPromoTab(self):
     print("<b> Expected Results: Able to access to Promo page. </b>" +
           "<br>")
     MainpageActions.Access_to_Mainpage(self)
     MainpageActions.Access_to_Promo(self)
Exemple #13
0
 def test_TC_Main_04_Access_to_Sport_Page_viaSportTab(self):
     print("<b> Expected Results: Able to access to Sport page. </b>" +
           "<br>")
     MainpageActions.Access_to_Mainpage(self)
     MainpageActions.Access_to_Sport(self)
Exemple #14
0
 def test_TC_Main_02_Access_to_Casino_Page_viaCasinoTab(self):
     print("<b> Expected Results: Able to access to Casino page. </b>" +
           "<br>")
     MainpageActions.Access_to_Mainpage(self)
     MainpageActions.Access_to_Casino(self)
Exemple #15
0
 def test_TC_Register_01_Register_New_User(self):
     print(
         "<b> Expected Results: Able to login with registered username and password. </b>"
         + "<br>")
     MainpageActions.Access_to_Register_Page(self)
     print("<li>" + "Insert Username: "******"</li>" + "<br>")
     self.driver.find_element_by_id(
         RegisterpageElement.username_field).send_keys(
             RegisterData.new_username)
     print("<li>" + "Insert Mobile Phone: " + RegisterData.phone_number +
           "</li>" + "<br>")
     self.driver.find_element_by_id(
         RegisterpageElement.mobile_phone_field).send_keys(
             RegisterData.phone_number)
     print("<li>" + "Insert Email: " + RegisterData.email + "</li>" +
           "<br>")
     self.driver.find_element_by_id(
         RegisterpageElement.email_field).send_keys(RegisterData.email)
     print("<li>" + "Insert Password: "******"</li>" +
           "<br>")
     self.driver.find_element_by_id(
         RegisterpageElement.password_field).send_keys(
             RegisterData.password)
     print("<li>" + "Insert Confirm Password: "******"</li>" + "<br>")
     self.driver.find_element_by_id(
         RegisterpageElement.confirm_password_field).send_keys(
             RegisterData.confirm_password)
     print("<li>" + "Insert Invitation Code: " +
           RegisterData.invitation_code + "</li>" + "<br>")
     self.driver.find_element_by_id(
         RegisterpageElement.invitation_code_field).send_keys(
             RegisterData.invitation_code)
     print("<li>" + "Click on Create Account button" + "</li>" + "<br>")
     self.driver.find_element_by_class_name(
         RegisterpageElement.create_acc_button).click()
     # Wait till alert is present
     alert = WebDriverWait(self.driver, 10).until(EC.alert_is_present())
     # Switch the control to the Alert window
     registration_prompt = self.driver.switch_to.alert
     # Retrieve the message on the Alert window
     # prompt_message = registration_prompt.text
     # print("Alert shows following message: " + prompt_message + "<br>")
     # Click on the OK button (Accept)
     print("<li>" + "Click on OK button" + "</li>" + "<br>")
     registration_prompt.accept()
     time.sleep(2)
     print("<li>" + "Insert Username: "******"</li>" + "<br>")
     self.driver.find_element_by_id(LogInElement.username_field).send_keys(
         RegisterData.new_username)
     print("<li>" + "Insert Password: "******"</li>" +
           "<br>")
     self.driver.find_element_by_id(LogInElement.password_field).send_keys(
         RegisterData.password)
     print("<li>" + "Click on Log in button" + "</li>" + "<br>")
     self.driver.find_element_by_class_name(
         LogInElement.confirm_login_button).click()
     # Wait the page loads
     time.sleep(2)
     # Wait the page loads
     wait_main_page = EC.element_to_be_clickable(
         (By.CLASS_NAME,
          MainpageElement.announcement_modal_dialog_close_button))
     WebDriverWait(self.driver, 20).until(wait_main_page)
     # Close Announcement dialog box
     print("<li>" + "Close the Announcement modal dialog" + "</li>" +
           "<br>")
     self.driver.find_element_by_class_name(
         MainpageElement.announcement_modal_dialog_close_button).click()
     self.driver.implicitly_wait(10)
     time.sleep(2)
     # Assert
     login_mainpage = self.driver.find_element_by_class_name(
         LogInElement.logout_button).is_displayed()
     self.assertTrue(login_mainpage,
                     "User is not able to login to the account.")