public void Should_find_tennis_player_and_be_on_their_info_page() { ATPHome home = new ATPHome(driver); home.loadPage(); RankingsHome rankings = home.goToRankingsHomePage(); DoublesHome doubles = rankings.goToSinglesRankings(); PlayerInfoPage fifthRankedPlayer = doubles.goToPlayersBio(); Assert.AreEqual(fifthRankedPlayer.getRanking(), "5"); }
public void VerifyIsCheckBoxTimeOutSelected(ResponsibleGamblingSection responsibleGamblingSection, PlayerInfoPage playerInfoPage, string playerUsername) { _playerManagerPage.SelectPlayer(playerUsername); _playerManagerPage.OpenPlayerInfoPage(); playerInfoPage.OpenResponsibleGamblingSection(); Assert.IsTrue(responsibleGamblingSection.IsCheckBoxTimeOutSelected()); }
public void UnselectedCheckBoxTimeOutAndVerify(ResponsibleGamblingSection responsibleGamblingSection, PlayerInfoPage playerInfoPage) { responsibleGamblingSection.UnSelectedCheckBoxTimeOut(); responsibleGamblingSection.CloseTab("Player Info"); _playerManagerPage.OpenPlayerInfoPage(); playerInfoPage.OpenResponsibleGamblingSection(); Assert.IsFalse(responsibleGamblingSection.IsCheckBoxTimeOutSelected()); responsibleGamblingSection.CloseTab("Player Info"); }
public void OpenResponsibleGamblingSectionInPlayerInfoPage(ResponsibleGamblingSection responsibleGamblingSection, PlayerInfoPage playerInfoPage, string playerUsername) { _playerManagerPage = _dashboardPage.Menu.ClickPlayerManagerMenuItem(); _playerManagerPage.SelectPlayer(playerUsername); playerInfoPage = _playerManagerPage.OpenPlayerInfoPage(); responsibleGamblingSection = playerInfoPage.OpenResponsibleGamblingSection(); }