private void Login(AuthenticationParameters authenticationParameters)
        {
            _driver.UserAgent =
                "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10";
            _driver.Navigate("http://www.funbeat.se/");

            _driver.Find("UsernameTextBox").Value = authenticationParameters.Username;
            _driver.Find("ctl00_ParallaxContentPlaceHolder_Login1_PasswordTextBox").Value =
                authenticationParameters.Password;
            _driver.Find("ctl00_ParallaxContentPlaceHolder_Login1_LoginButton").Click();
        }
        public void ScrapeTrainings(
            IEnumerable<RawTraining> trainings, AuthenticationParameters authenticationParameters)
        {
            try
            {
                _driver = new Browser();

                Login(authenticationParameters);

                trainings.ToList().ForEach(ParseTraining);
            }
            finally
            {
                _driver.Close();
            }
        }