Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
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.")
Ejemplo n.º 4
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)
Ejemplo n.º 5
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)
Ejemplo n.º 6
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)
Ejemplo n.º 7
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)
Ejemplo n.º 8
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)
Ejemplo n.º 9
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)
Ejemplo n.º 10
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)