Пример #1
0
        internal static void Refresh()
        {
            webDriver.SwitchTo().Window(homewindow);
            webDriver.Navigate().Refresh();
            Base.CloseAlert();

            IJavaScriptExecutor js = ((IJavaScriptExecutor)webDriver);

            js.ExecuteScript("window.scrollTo(0, 0)");
        }
Пример #2
0
 public static void WaitForLoaded(int sec)
 {
     webDriver.Manage().Timeouts().SetPageLoadTimeout(TimeSpan.FromSeconds(sec));
     Base.CloseAlert();
 }