mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
parent
0629922774
commit
4da2d6e104
@ -1,6 +1,6 @@
|
||||
# 🎭 Playwright
|
||||
|
||||
[](https://www.npmjs.com/package/playwright) [](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[](https://webkit.org/)<!-- GEN:stop -->
|
||||
[](https://www.npmjs.com/package/playwright) [](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[](https://webkit.org/)<!-- GEN:stop -->
|
||||
|
||||
## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)
|
||||
|
||||
@ -10,7 +10,7 @@ Playwright is a Node.js library to automate [Chromium](https://www.chromium.org/
|
||||
| :--- | :---: | :---: | :---: |
|
||||
| Chromium <!-- GEN:chromium-version -->91.0.4455.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
||||
| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
||||
| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
||||
| Firefox <!-- GEN:firefox-version -->88.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
||||
|
||||
Headless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
},
|
||||
{
|
||||
"name": "firefox",
|
||||
"revision": "1239",
|
||||
"revision": "1244",
|
||||
"installByDefault": true
|
||||
},
|
||||
{
|
||||
|
@ -194,7 +194,7 @@ export module Protocol {
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
deviceScaleFactor: number;
|
||||
deviceScaleFactor?: number;
|
||||
}|null;
|
||||
};
|
||||
export type setDefaultViewportReturnValue = void;
|
||||
@ -294,7 +294,7 @@ export module Protocol {
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
deviceScaleFactor: number;
|
||||
deviceScaleFactor?: number;
|
||||
};
|
||||
export type DOMQuad = {
|
||||
p1: {
|
||||
@ -530,18 +530,6 @@ export module Protocol {
|
||||
frameId: string;
|
||||
};
|
||||
export type reloadReturnValue = void;
|
||||
export type getBoundingBoxParameters = {
|
||||
frameId: string;
|
||||
objectId: string;
|
||||
};
|
||||
export type getBoundingBoxReturnValue = {
|
||||
boundingBox: {
|
||||
x: number;
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
}|null;
|
||||
};
|
||||
export type adoptNodeParameters = {
|
||||
frameId: string;
|
||||
objectId: string;
|
||||
@ -558,13 +546,13 @@ export module Protocol {
|
||||
};
|
||||
export type screenshotParameters = {
|
||||
mimeType: ("image/png"|"image/jpeg");
|
||||
fullPage?: boolean;
|
||||
clip?: {
|
||||
x: number;
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
omitDeviceScaleFactor?: boolean;
|
||||
};
|
||||
export type screenshotReturnValue = {
|
||||
data: string;
|
||||
@ -1068,7 +1056,6 @@ export module Protocol {
|
||||
"Page.goBack": Page.goBackParameters;
|
||||
"Page.goForward": Page.goForwardParameters;
|
||||
"Page.reload": Page.reloadParameters;
|
||||
"Page.getBoundingBox": Page.getBoundingBoxParameters;
|
||||
"Page.adoptNode": Page.adoptNodeParameters;
|
||||
"Page.screenshot": Page.screenshotParameters;
|
||||
"Page.getContentQuads": Page.getContentQuadsParameters;
|
||||
@ -1142,7 +1129,6 @@ export module Protocol {
|
||||
"Page.goBack": Page.goBackReturnValue;
|
||||
"Page.goForward": Page.goForwardReturnValue;
|
||||
"Page.reload": Page.reloadReturnValue;
|
||||
"Page.getBoundingBox": Page.getBoundingBoxReturnValue;
|
||||
"Page.adoptNode": Page.adoptNodeReturnValue;
|
||||
"Page.screenshot": Page.screenshotReturnValue;
|
||||
"Page.getContentQuads": Page.getContentQuadsReturnValue;
|
||||
|
@ -65,7 +65,7 @@ it('should run beforeunload if asked for', async ({context, server, isChromium,
|
||||
else if (isWebKit)
|
||||
expect(dialog.message()).toBe('Leave?');
|
||||
else
|
||||
expect(dialog.message()).toBe('This page is asking you to confirm that you want to leave - data you have entered may not be saved.');
|
||||
expect(dialog.message()).toBe('This page is asking you to confirm that you want to leave — information you’ve entered may not be saved.');
|
||||
await Promise.all([
|
||||
dialog.accept(),
|
||||
newPage.waitForEvent('close'),
|
||||
|
@ -54,9 +54,7 @@ it('should report console logs', async function({page}) {
|
||||
expect(page.url()).not.toContain('blob');
|
||||
});
|
||||
|
||||
it('should not report console logs from workers twice', (test, {browserName}) => {
|
||||
test.fail(browserName === 'firefox');
|
||||
}, async function({page}) {
|
||||
it('should not report console logs from workers twice', async function({page}) {
|
||||
const messages = [];
|
||||
page.on('console', msg => messages.push(msg.text()));
|
||||
await Promise.all([
|
||||
|
Loading…
x
Reference in New Issue
Block a user