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