Skip to content

Conversation

@arjunattam
Copy link
Contributor

Ref #3996

// With browser.newContext
const context = await browser.newContext({ videosPath: 'videos/' });

// With browser.newPage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// With browser.newPage
// With browser.newPage()

Playwright can record videos for all pages in a [browser context](core-concepts.md#browser-contexts).

```js
// With browser.newContext
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: demonstrates that its a function

Suggested change
// With browser.newContext
// With browser.newContext()

// [Optional] Specify video size; defaults to viewport size
const context = await browser.newContext({
videosPath: 'videos/',
videoSize: { width: 1920, height: 1080 }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'd go for something smaller here 😄

@arjunattam arjunattam merged commit aafe5da into microsoft:master Oct 7, 2020
@arjunattam arjunattam deleted the doc-videos branch October 7, 2020 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants