new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Playwright · API reference · all subjects

video/methods

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Video.delete method

Video.delete is an async method available since v1.11. It deletes the video file and will wait for the video to finish if necessary.

Video.path method returns file system path

Video.path is an async method available since v1.8 that returns a path type. It returns the file system path this video will be recorded to. The video is guaranteed to be written to the filesystem upon closing the browser context. This method throws when connected remotely.

Video.saveAs method for Java

Video.saveAs for Java (available since v1.11) takes a path parameter of type path, specifying where the video should be saved. This method must be called after Page.close() or BrowserContext.close(), otherwise an error will be thrown. This method waits until the video is fully saved.

Video.saveAs method for Python

Video.saveAs for Python (available since v1.11) is an async method that takes a path parameter of type path, specifying where the video should be saved. For sync API, this must be called after Page.close() or BrowserContext.close(), otherwise an error will be thrown. For async API, it is safe to call this method while the video is still in progress, or after the page has closed. This method waits until the page is closed and the video is fully saved.

Give your agent this brain