Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add videos to verification doc #4071

Merged
merged 2 commits into from
Oct 7, 2020

Conversation

arjunattam
Copy link
Contributor

Ref #3996

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

// With browser.newPage
Copy link
Member

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
Member

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