I am enabling the video recording feature. I don't want to save the video if scenario passed. I need failed scenario's videos need to be saved(I want to save the space while running from cloud).
how can I achieve it?
here is sample code i used to enable it.
browserContext.set(getBrowser().newContext(new Browser.NewContextOptions().setViewportSize(width, height).setRecordVideoDir(Paths.get("./target/videos/")) .setRecordVideoSize(1280, 720)));
I am enabling the video recording feature. I don't want to save the video if scenario passed. I need failed scenario's videos need to be saved(I want to save the space while running from cloud).
how can I achieve it?
here is sample code i used to enable it.
browserContext.set(getBrowser().newContext(new Browser.NewContextOptions().setViewportSize(width, height).setRecordVideoDir(Paths.get("./target/videos/")) .setRecordVideoSize(1280, 720)));