Package com.microsoft.playwright
Class Browser.NewPageOptions.RecordVideo
- java.lang.Object
-
- com.microsoft.playwright.Browser.NewPageOptions.RecordVideo
-
- Enclosing class:
- Browser.NewPageOptions
public class Browser.NewPageOptions.RecordVideo extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Path
dir
Path to the directory to put videos into.Browser.VideoSize
size
Optional dimensions of the recorded videos.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Browser.NewPageOptions
done()
Browser.NewPageOptions.RecordVideo
withDir(Path dir)
Browser.NewPageOptions.RecordVideo
withSize(int width, int height)
-
-
-
Field Detail
-
dir
public Path dir
Path to the directory to put videos into.
-
size
public Browser.VideoSize size
Optional dimensions of the recorded videos. If not specified the size will be equal toviewport
. Ifviewport
is not configured explicitly the video size defaults to 1280x720. Actual picture of each page will be scaled down if necessary to fit the specified size.
-
-
Method Detail
-
done
public Browser.NewPageOptions done()
-
withDir
public Browser.NewPageOptions.RecordVideo withDir(Path dir)
-
withSize
public Browser.NewPageOptions.RecordVideo withSize(int width, int height)
-
-