def login_and_search_player(self): self.navigate_to_page(Key.urlWATBase) #Navigate to WAT Sign In Page self.login_to_the_WAT() #Login to the WAT WATHomePage_obj = WATHomePage(self.driver) WATHomePage_obj.playersearchbyid() #Find player
def test10_WATLogin(self): SigninInPage_obj = WATLogin(self.driver) self.assertEquals(SigninInPage_obj.signin_page_title(), Key.sHomePageTitle) #Verify title in the login page #Login to the WAT SigninInPage_obj.login_to_wat() time.sleep(2) WATTitlePage = WATHomePage(self.driver) self.assertEquals(WATTitlePage.homepage_page_title(), Key.sHomePageTitle) #Verify WAT homepage title
def test10_player_search(self): WATHomePage_obj = WATHomePage(self.driver) WATHomePage_obj.playersearchbyid() # Find Player time.sleep(2) #Verify the player's details PlayerValues = PlayerDetails(self.driver) self.assertEquals(PlayerValues.player_id(), Key.sPlayerId) self.assertEquals(PlayerValues.player_biz(), Key.sBiz)