-
Notifications
You must be signed in to change notification settings - Fork 243
Closed
Description
I have a script like the following:
try {
playwright = Playwright.create();
var launchOptions = new BrowserType.LaunchOptions();
launchOptions
.setHeadless(false)
.setSlowMo(300);
browser = playwright.chromium().launch(launchOptions);
var videoPath = Paths.get("videos/");
var contextOptions = new Browser.NewContextOptions()
.setViewportSize(1920, 1080)
.setRecordVideoDir(videoPath)
.setRecordVideoSize(1920,1080);
context = browser.newContext(contextOptions);
page = context.newPage();
page.setDefaultTimeout(60000);
// do stuff in the web that eventually causes an exception (`Frame.waitForSelector failed` for example)
} catch (Exception e) {
e.printStackTrace();
} finally {
page.close();
context.close();
browser.close();
playwright.close();
}
The video is recorded and saved just fine but when i compare where the script failed and the recorded video, the video is missing the end of the script before it failed.
Metadata
Metadata
Assignees
Labels
No labels