/// <summary> /// X5 coef. /// </summary> public double X5() { HomeSubtub.Click(); var homeDifferenceGoals = DifferenceScoredAndMissedGoals(HomeTeamName.Text.Trim()); AwaySubtub.Click(); var awayDifferenceGoals = DifferenceScoredAndMissedGoals(AwayTeamName.Text.Trim()); var x5 = homeDifferenceGoals + awayDifferenceGoals; return(x5); }
/// <summary> /// X4 coef. /// </summary> public double X4() { TableSubtub.Click(); wait.Until(x => x.FindElement(By.CssSelector(".ifmenu #tabitem-table-home"))); driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(60); HomeSubtub.Click(); wait.Until(x => x.FindElement(By.CssSelector(".tname-home span a"))); driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); var homeTotalPoints = TotalPoints(HomeTeamName.Text.Trim()); var homeGamesNumber = GamesNumber(HomeTeamName.Text.Trim()); AwaySubtub.Click(); var awayTotalPoints = TotalPoints(AwayTeamName.Text.Trim()); var awayGamesNumber = GamesNumber(AwayTeamName.Text.Trim()); var x4 = homeTotalPoints / homeGamesNumber - awayTotalPoints / awayGamesNumber; return(x4); }