public virtual Point SetPosition(Point pos) { logger_.Verbose("setting position of {0} to {1}", ScrolledElement, pos); var position = executor_.ExecuteScript(string.Format(SetPositionCommandFormat, pos.X, pos.Y), ScrolledElement); return(EyesSeleniumUtils.ParseLocationString(position)); }
internal static Point GetCurrentPosition(IEyesJsExecutor executor, IWebElement scrollRootElement) { var position = executor.ExecuteScript("return arguments[0].scrollLeft+';'+arguments[0].scrollTop;", scrollRootElement); return(EyesSeleniumUtils.ParseLocationString(position)); }