MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / SaveAsFile

Method SaveAsFile

dotnet/src/webdriver/Screenshot.cs:48–51  ·  view source on GitHub ↗

Saves the screenshot to a Portable Network Graphics (PNG) file, overwriting the file if it already exists. The full path and file name to save the screenshot to.

(string fileName)

Source from the content-addressed store, hash-verified

46 /// </summary>
47 /// <param name="fileName">The full path and file name to save the screenshot to.</param>
48 public override void SaveAsFile(string fileName)
49 {
50 File.WriteAllBytes(fileName, this.AsByteArray);
51 }
52}

Callers 1

GetScreenshotAsFileMethod · 0.45

Calls

no outgoing calls

Tested by 1

GetScreenshotAsFileMethod · 0.36