예제 #1
0
        public void ScrollBy(int p1, int p2)
        {
            string              script   = string.Format("window.scrollBy({0}, {1})", p1, p2);
            IWebDriver          driver   = BrowserManager.GetInstance().WrappedDriver;
            IJavaScriptExecutor executor = (IJavaScriptExecutor)driver;

            executor.ExecuteScript("window.scrollBy(0,1000)");
            logger.Debug(string.Format("Scroll window by ({0}, {1})", p1, p2));
        }
예제 #2
0
 public void Refresh()
 {
     BrowserManager.GetInstance().WrappedDriver.Navigate().Refresh();
 }