def test_TC_M8_03_Enter_Game(self): print("<b> Expected Results: Able to access to gaming page. </b>" + "<br>") LoginpageActions.Login_to_Mainpage(self) ElectronicGamepageActions.Access_to_ElectronicGame_Tab(self) ElectronicGamepageActions.Access_to_M8Sports_Page(self) game_position = self.driver.find_element_by_xpath( ElectronicGameElement.m8sports_game) actions = ActionChains(self.driver) actions.move_to_element(game_position).perform() print("<li>" + "Click on a M8 Sports game in the list: " + str(ElectronicGameData.loopranm8) + "</li>" + "<br>") wait_page_load = EC.element_to_be_clickable( (By.XPATH, ElectronicGameElement.m8sports_game)) WebDriverWait(self.driver, 10).until(wait_page_load) select_game = self.driver.find_element_by_xpath( ElectronicGameElement.m8sports_game).click() ElectronicGamepageActions.Assert_Quick_Transfer(self) ElectronicGamepageActions.Enter_Game(self)
def test_TC_BIG_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.Access_to_BigGaming_Page(self) game_position = self.driver.find_element_by_xpath( ElectronicGameElement.big_game) actions = ActionChains(self.driver) actions.move_to_element(game_position).perform() print("<li>" + "Click on a Big Gaming game in the list: " + str(ElectronicGameData.loopranbig) + "</li>" + "<br>") wait_page_load = EC.element_to_be_clickable( (By.XPATH, ElectronicGameElement.big_game)) WebDriverWait(self.driver, 10).until(wait_page_load) select_game = self.driver.find_element_by_xpath( ElectronicGameElement.big_game).click() ElectronicGamepageActions.Assert_Quick_Transfer(self) ElectronicGamepageActions.Quick_Transfer(self)
def test_TC_M8_02_Navigate_to_M8Sports_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) ElectronicGamepageActions.Access_to_ElectronicGame_Tab(self) ElectronicGamepageActions.Access_to_M8Sports_Page(self) game_position = self.driver.find_element_by_xpath( ElectronicGameElement.m8sports_game) actions = ActionChains(self.driver) actions.move_to_element(game_position).perform() print("<li>" + "Click on a M8 Sports game in the list: " + str(ElectronicGameData.loopranm8) + "</li>" + "<br>") wait_page_load = EC.element_to_be_clickable( (By.XPATH, ElectronicGameElement.m8sports_game)) WebDriverWait(self.driver, 10).until(wait_page_load) select_game = self.driver.find_element_by_xpath( ElectronicGameElement.m8sports_game).click() ElectronicGamepageActions.Assert_Quick_Transfer(self)