BrowserScreenshotAsync

Parent Previous Next

BrowserScreenshotAsync

Description: the method takes a screenshot of the browser screen

Syntax: BrowserScreenshotAsync(string filename)

Return value: string


Example:

string screenshot = await tester.BrowserScreenshotAsync(null);

screenshot = await tester.BrowserScreenshotAsync("");


screenshot = await tester.BrowserScreenshotAsync("screenshot.jpg");

screenshot = await tester.BrowserScreenshotAsync("C:\\Users\\User\\Desktop\\MyTests\\reports\\screenshots\\test_screenshot.jpg");


tester.ConsoleMsg(screenshot);

Created with the Personal Edition of HelpNDoc: Easily create HTML Help documents