Beispiel #1
0
 def test_TC_NextSpin_01_Navigate_to_NextSpin_BeforeLogin(self):
     print(
         "<b> Expected Results: Login Reminder modal dialog is displayed when accessing NextSpin game without valid login. </b>"
         + "<br>")
     MainpageActions.Access_to_Mainpage(self)
     ElectronicGamepageActions.Access_to_ElectronicGame_Tab(self)
     ElectronicGamepageActions.Click_Next(self)
     ElectronicGamepageActions.Access_to_NextSpin_Page(self)
     game_position = self.driver.find_element_by_xpath(
         ElectronicGameElement.nextspin_game)
     actions = ActionChains(self.driver)
     actions.move_to_element(game_position).perform()
     print("<li>" + "Click on a NextSpin game in the list: " +
           str(ElectronicGameData.looprannextspin) + "</li>" + "<br>")
     wait_page_load = EC.element_to_be_clickable(
         (By.XPATH, ElectronicGameElement.nextspin_game))
     WebDriverWait(self.driver, 10).until(wait_page_load)
     select_game = self.driver.find_element_by_xpath(
         ElectronicGameElement.nextspin_game).click()
     ElectronicGamepageActions.Assert_Login_Reminder(self)
Beispiel #2
0
 def test_TC_NextSpin_04_Quick_Transfer(self):
     print("<b> Expected Results: Able to perform quick transfer. </b>" +
           "<br>")
     LoginpageActions.Login_to_Mainpage(self)
     ElectronicGamepageActions.Access_to_ElectronicGame_Tab(self)
     ElectronicGamepageActions.Click_Next(self)
     ElectronicGamepageActions.Access_to_NextSpin_Page(self)
     game_position = self.driver.find_element_by_xpath(
         ElectronicGameElement.nextspin_game)
     actions = ActionChains(self.driver)
     actions.move_to_element(game_position).perform()
     print("<li>" + "Click on a NextSpin game in the list: " +
           str(ElectronicGameData.looprannextspin) + "</li>" + "<br>")
     wait_page_load = EC.element_to_be_clickable(
         (By.XPATH, ElectronicGameElement.nextspin_game))
     WebDriverWait(self.driver, 10).until(wait_page_load)
     select_game = self.driver.find_element_by_xpath(
         ElectronicGameElement.nextspin_game).click()
     ElectronicGamepageActions.Assert_Quick_Transfer(self)
     ElectronicGamepageActions.Quick_Transfer(self)
Beispiel #3
0
 def test_TC_WM_02_Navigate_to_WMCasino_AfterLogin(self):
     print(
         "<b> Expected Results: Quick Transfer modal dialog is displayed when accessing WM Casino game with valid login. </b>"
         + "<br>")
     LoginpageActions.Login_to_Mainpage(self)
     ElectronicGamepageActions.Access_to_ElectronicGame_Tab(self)
     ElectronicGamepageActions.Click_Next(self)
     ElectronicGamepageActions.Access_to_WMCasino_Page(self)
     game_position = self.driver.find_element_by_xpath(
         ElectronicGameElement.wmcasino_game)
     actions = ActionChains(self.driver)
     actions.move_to_element(game_position).perform()
     print("<li>" + "Click on a WM Casino game in the list: " +
           str(ElectronicGameData.loopranwm) + "</li>" + "<br>")
     wait_page_load = EC.element_to_be_clickable(
         (By.XPATH, ElectronicGameElement.wmcasino_game))
     WebDriverWait(self.driver, 10).until(wait_page_load)
     select_game = self.driver.find_element_by_xpath(
         ElectronicGameElement.wmcasino_game).click()
     ElectronicGamepageActions.Assert_Quick_Transfer(self)