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)
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)