public static string DownloadResource(this IWebDriver driver, string url) => driver.ExecuteScriptWithArguments(JavascriptCode.DownloadResource(url), Convert.ToString);
public static void SetOffset(this IWebDriver driver, int x, int y) => driver.ExecuteScript(JavascriptCode.ScrollTo(x, y));
public static void SetZoomLevel(this IWebDriver driver, int zoomLevel) => driver.ExecuteScript(JavascriptCode.SetZoomLevel(zoomLevel));