def test_TC_SBO_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_SBO_Page(self) game_position = self.driver.find_element_by_xpath( ElectronicGameElement.sbo_game) actions = ActionChains(self.driver) actions.move_to_element(game_position).perform() print("<li>" + "Click on a SBO game in the list: " + str(ElectronicGameData.loopransbo) + "</li>" + "<br>") wait_page_load = EC.element_to_be_clickable( (By.XPATH, ElectronicGameElement.sbo_game)) WebDriverWait(self.driver, 10).until(wait_page_load) select_game = self.driver.find_element_by_xpath( ElectronicGameElement.sbo_game).click() ElectronicGamepageActions.Assert_Quick_Transfer(self) ElectronicGamepageActions.Quick_Transfer(self)
def test_TC_SBO_01_Navigate_to_SBO_BeforeLogin(self): print( "<b> Expected Results: Login Reminder modal dialog is displayed when accessing SBO game without valid login. </b>" + "<br>") MainpageActions.Access_to_Mainpage(self) ElectronicGamepageActions.Access_to_ElectronicGame_Tab(self) ElectronicGamepageActions.Access_to_SBO_Page(self) game_position = self.driver.find_element_by_xpath( ElectronicGameElement.sbo_game) actions = ActionChains(self.driver) actions.move_to_element(game_position).perform() print("<li>" + "Click on a SBO game in the list: " + str(ElectronicGameData.loopransbo) + "</li>" + "<br>") wait_page_load = EC.element_to_be_clickable( (By.XPATH, ElectronicGameElement.sbo_game)) WebDriverWait(self.driver, 10).until(wait_page_load) select_game = self.driver.find_element_by_xpath( ElectronicGameElement.sbo_game).click() ElectronicGamepageActions.Assert_Login_Reminder(self)