Exemple #1
0
 def test_TC_IBC_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_IBC_Page(self)
     game_position = self.driver.find_element_by_xpath(
         ElectronicGameElement.ibc_game)
     actions = ActionChains(self.driver)
     actions.move_to_element(game_position).perform()
     print("<li>" + "Click on an IBC game in the list: " +
           str(ElectronicGameData.loopranibc) + "</li>" + "<br>")
     wait_page_load = EC.element_to_be_clickable(
         (By.XPATH, ElectronicGameElement.ibc_game))
     WebDriverWait(self.driver, 10).until(wait_page_load)
     select_game = self.driver.find_element_by_xpath(
         ElectronicGameElement.ibc_game).click()
     ElectronicGamepageActions.Assert_Quick_Transfer(self)
     ElectronicGamepageActions.Quick_Transfer(self)
Exemple #2
0
 def test_TC_IBC_01_Navigate_to_IBC_BeforeLogin(self):
     print(
         "<b> Expected Results: Login Reminder modal dialog is displayed when accessing IBC game without valid login. </b>"
         + "<br>")
     MainpageActions.Access_to_Mainpage(self)
     ElectronicGamepageActions.Access_to_ElectronicGame_Tab(self)
     ElectronicGamepageActions.Access_to_IBC_Page(self)
     game_position = self.driver.find_element_by_xpath(
         ElectronicGameElement.ibc_game)
     actions = ActionChains(self.driver)
     actions.move_to_element(game_position).perform()
     print("<li>" + "Click on an IBC game in the list: " +
           str(ElectronicGameData.loopranibc) + "</li>" + "<br>")
     wait_page_load = EC.element_to_be_clickable(
         (By.XPATH, ElectronicGameElement.ibc_game))
     WebDriverWait(self.driver, 10).until(wait_page_load)
     select_game = self.driver.find_element_by_xpath(
         ElectronicGameElement.ibc_game).click()
     ElectronicGamepageActions.Assert_Login_Reminder(self)