public void OpenMatch(string league, string matchDate, string firstTeamName, string secondTeamName) { SelectMatch(league, matchDate, firstTeamName, secondTeamName); BbcSportScoresPage.GoToMatchPage(matchDate, firstTeamName, secondTeamName); BbcSportMatchPage = new BbcSportMatchPage(); CurrentPage = BbcSportMatchPage; }
public void SelectLeague(string league) { if (!(CurrentPage is BbcSportScoresPage) || BbcSportScoresPage.League != league) { if (!(CurrentPage is BbcSportPage)) { GoFromHomePageToSportPage(); } new BbcHomePage().GoToSportCategory(); new BbcSportPage().OpenLeagueMatches(league); CurrentPage = new BbcSportScoresPage(league); } }
public void SelectMatch(string league, string matchDate, string firstTeamName, string secondTeamName) { SelectLeague(league); BbcSportScoresPage.SelectMatch(matchDate, firstTeamName, secondTeamName); }