public bool Login() { PhantomJsDriver.Navigate().GoToUrl($"{BaseUrl}{LoginUrl}"); PhantomJsDriver.FindElementById("ctl00_MainContent_InputLogin").SendKeys(_username); PhantomJsDriver.FindElementById("ctl00_MainContent_InputPassword").SendKeys(_password); PhantomJsDriver.FindElementById("ctl00_MainContent_btnLogin").Click(); PhantomJsDriver.WaitForAjax(); return(PhantomJsDriver.Url != $"{BaseUrl}{LoginUrl}"); }