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

feat(screencast): add expreimental public API on context #3766

Merged
merged 8 commits into from
Sep 5, 2020

Conversation

yury-s
Copy link
Member

@yury-s yury-s commented Sep 4, 2020

@yury-s yury-s requested review from aslushnikov and pavelfeldman and removed request for aslushnikov September 4, 2020 06:34
docs/api.md Outdated
@@ -345,6 +348,30 @@ console.log(await page.evaluate('location.href'));

> **NOTE** Use [`page.waitForLoadState([state[, options]])`](#pagewaitforloadstatestate-options) to wait until the page gets to a particular state (you should not need it in most cases).

#### browserContext._disableScreencast()
Copy link
Member

Choose a reason for hiding this comment

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

Let's land them as commented out for now. <!-- -->

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed these. Added options.

docs/api.md Outdated Show resolved Hide resolved
docs/api.md Outdated Show resolved Hide resolved
src/dispatchers/pageDispatcher.ts Outdated Show resolved Hide resolved
@@ -65,6 +66,7 @@ export class PageDispatcher extends Dispatcher<Page, channels.PageInitializer> i
}));
page.on(Page.Events.RequestFinished, request => this._dispatchEvent('requestFinished', { request: RequestDispatcher.from(scope, request) }));
page.on(Page.Events.Response, response => this._dispatchEvent('response', { response: new ResponseDispatcher(this._scope, response) }));
page.on(Page.Events.ScreencastStarted, screencast => this._dispatchEvent('videoStarted', { video: new VideoDispatcher(this._scope, screencast) }));
Copy link
Member

Choose a reason for hiding this comment

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

Nit: we should narrow down the scopes as much as we can (page in this case)

Copy link
Member Author

Choose a reason for hiding this comment

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

The video can survive the page and finish after it has closed.

src/server/browserContext.ts Outdated Show resolved Hide resolved
src/server/browserContext.ts Outdated Show resolved Hide resolved
src/server/chromium/crPage.ts Outdated Show resolved Hide resolved
src/server/chromium/crPage.ts Outdated Show resolved Hide resolved
src/server/firefox/ffPage.ts Show resolved Hide resolved
src/server/webkit/wkPage.ts Show resolved Hide resolved
@yury-s yury-s merged commit 66985fc into microsoft:master Sep 5, 2020
@yury-s yury-s deleted the screencast-api branch September 5, 2020 05:37
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.

2 participants