Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/tests_secondary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,3 +320,34 @@ jobs:
flakiness-subscription-id: ${{ secrets.AZURE_FLAKINESS_DASHBOARD_SUBSCRIPTION_ID }}
env:
PWTEST_CHANNEL: chromium

test_android:
name: Android
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
runs-on: playwright-x64-ubuntu24-64-core
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Create Android Emulator
run: utils/avd_recreate.sh
- name: Start Android Emulator
run: utils/avd_start.sh
- uses: ./.github/actions/run-test
with:
browsers-to-install: android
command: npm run atest
bot-name: "android"
flakiness-client-id: ${{ secrets.AZURE_FLAKINESS_DASHBOARD_CLIENT_ID }}
flakiness-tenant-id: ${{ secrets.AZURE_FLAKINESS_DASHBOARD_TENANT_ID }}
flakiness-subscription-id: ${{ secrets.AZURE_FLAKINESS_DASHBOARD_SUBSCRIPTION_ID }}
4 changes: 2 additions & 2 deletions docs/src/api/class-apiresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ An object with all the response HTTP headers associated with this response.
## method: APIResponse.headersArray
* since: v1.16
- returns: <[Array]<[Object]>>
- alias-csharp: Header
- alias-java: HttpHeader
* alias: HttpHeader
* alias-csharp: Header
- `name` <[string]> Name of the header.
- `value` <[string]> Value of the header.

Expand Down
3 changes: 2 additions & 1 deletion docs/src/api/class-browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ testing frameworks should explicitly create [`method: Browser.newContext`] follo
## async method: Browser.bind
* since: v1.59
- returns: <[Object]>
- alias: BindResult
* alias: BindResult
* alias-csharp: BrowserBindResult
- `endpoint` <[string]>

Binds the browser to a named pipe or web socket, making it available for other clients to connect to.
Expand Down
12 changes: 6 additions & 6 deletions docs/src/api/class-browsercontext.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ await context.AddCookiesAsync(new[] { cookie1, cookie2 });
### param: BrowserContext.addCookies.cookies
* since: v1.8
- `cookies` <[Array]<[Object]>>
- alias-java: Cookie
* alias-java: Cookie
- `name` <[string]>
- `value` <[string]>
- `url` ?<[string]> Either `url` or both `domain` and `path` are required. Optional.
Expand Down Expand Up @@ -607,8 +607,8 @@ The default browser context cannot be closed.
## async method: BrowserContext.cookies
* since: v1.8
- returns: <[Array]<[Object]>>
- alias-csharp: BrowserContextCookiesResult
- alias-java: Cookie
* alias: Cookie
* alias-csharp: BrowserContextCookiesResult
- `name` <[string]>
- `value` <[string]>
- `domain` <[string]>
Expand Down Expand Up @@ -769,7 +769,7 @@ Name of the function on the window object.
### param: BrowserContext.exposeBinding.callback
* since: v1.8
- `callback` <[function]>
- alias-java: BindingCallback
* alias: BindingCallback

Callback function that will be called in the Playwright's context.

Expand Down Expand Up @@ -961,7 +961,7 @@ Name of the function on the window object.
### param: BrowserContext.exposeFunction.callback
* since: v1.8
- `callback` <[function]>
- alias-java: FunctionCallback
* alias: FunctionCallback

Callback function that will be called in the Playwright's context.

Expand Down Expand Up @@ -1498,7 +1498,7 @@ its geolocation.
### param: BrowserContext.setGeolocation.geolocation
* since: v1.8
- `geolocation` <[null]|[Object]>
- alias-java: Geolocation
* alias: Geolocation
- `latitude` <[float]> Latitude between -90 and 90.
- `longitude` <[float]> Longitude between -180 and 180.
- `accuracy` ?<[float]> Non-negative accuracy value. Defaults to `0`.
Expand Down
6 changes: 3 additions & 3 deletions docs/src/api/class-debugger.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ Emitted when the debugger pauses or resumes.
## method: Debugger.pausedDetails
* since: v1.59
- returns: <[null]|[Object]>
- alias: DebuggerPausedDetails
* alias: DebuggerPausedDetails
- `location` <[Object]>
- alias-java: Location
* alias: Location
- `file` <[string]>
- `line` ?<[int]>
- `column` ?<[int]>
Expand Down Expand Up @@ -49,7 +49,7 @@ Resumes script execution and pauses when an action originates from the given sou
### param: Debugger.runTo.location
* since: v1.59
- `location` <[Object]>
- alias-java: Location
* alias: Location
- `file` <[string]>
- `line` ?<[int]>
- `column` ?<[int]>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/api/class-elementhandle.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ await locator.ClickAsync();
## async method: ElementHandle.boundingBox
* since: v1.8
- returns: <[null]|[Object]>
- alias-csharp: ElementHandleBoundingBoxResult
- alias-java: BoundingBox
* alias: BoundingBox
* alias-csharp: ElementHandleBoundingBoxResult
- `x` <[float]> the x coordinate of the element in pixels.
- `y` <[float]> the y coordinate of the element in pixels.
- `width` <[float]> the width of the element in pixels.
Expand Down
8 changes: 4 additions & 4 deletions docs/src/api/class-formdata.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Field name.
### param: FormData.append.value
* since: v1.44
- `value` <[string]|[boolean]|[int]|[path]|[Object]>
- alias: FilePayload
* alias: FilePayload
- `name` <[string]> File name
- `mimeType` <[string]> File type
- `buffer` <[Buffer]> File content
Expand All @@ -126,7 +126,7 @@ Field value.
* since: v1.44
* langs: csharp
- `value` <[string]|[boolean]|[int]|[Object]>
- alias-csharp: FilePayload
* alias: FilePayload
- `name` <[string]> File name
- `mimeType` <[string]> File type
- `buffer` <[Buffer]> File content
Expand Down Expand Up @@ -216,7 +216,7 @@ Field name.
### param: FormData.set.value
* since: v1.18
- `value` <[string]|[boolean]|[int]|[path]|[Object]>
- alias: FilePayload
* alias: FilePayload
- `name` <[string]> File name
- `mimeType` <[string]> File type
- `buffer` <[Buffer]> File content
Expand All @@ -227,7 +227,7 @@ Field value.
* since: v1.18
* langs: csharp
- `value` <[string]|[boolean]|[int]|[Object]>
- alias-csharp: FilePayload
* alias: FilePayload
- `name` <[string]> File name
- `mimeType` <[string]> File type
- `buffer` <[Buffer]> File content
Expand Down
4 changes: 2 additions & 2 deletions docs/src/api/class-locator.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ Calls [blur](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/blur)
## async method: Locator.boundingBox
* since: v1.14
- returns: <[null]|[Object]>
- alias-csharp: LocatorBoundingBoxResult
- alias-java: BoundingBox
* alias: BoundingBox
* alias-csharp: LocatorBoundingBoxResult
- `x` <[float]> the x coordinate of the element in pixels.
- `y` <[float]> the y coordinate of the element in pixels.
- `width` <[float]> the width of the element in pixels.
Expand Down
10 changes: 5 additions & 5 deletions docs/src/api/class-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -1829,7 +1829,7 @@ Name of the function on the window object.
### param: Page.exposeBinding.callback
* since: v1.8
- `callback` <[function]>
- alias-java: BindingCallback
* alias: BindingCallback

Callback function that will be called in the Playwright's context.

Expand Down Expand Up @@ -2023,7 +2023,7 @@ Name of the function on the window object
### param: Page.exposeFunction.callback
* since: v1.8
- `callback` <[function]>
- alias-java: FunctionCallback
* alias: FunctionCallback

Callback function which will be called in Playwright's context.

Expand Down Expand Up @@ -3006,7 +3006,7 @@ Paper margins, defaults to none.
* since: v1.8
* langs: csharp, java
- `margin` <[Object]>
- alias-java: Margin
* alias-java: Margin
- `top` ?<[string]> Top margin, accepts values labeled with units. Defaults to `0`.
- `right` ?<[string]> Right margin, accepts values labeled with units. Defaults to `0`.
- `bottom` ?<[string]> Bottom margin, accepts values labeled with units. Defaults to `0`.
Expand Down Expand Up @@ -4471,8 +4471,8 @@ Video object associated with this page. Can be used to access the video file whe
## method: Page.viewportSize
* since: v1.8
- returns: <[null]|[Object]>
- alias-csharp: PageViewportSizeResult
- alias-java: ViewportSize
* alias: ViewportSize
* alias-csharp: PageViewportSizeResult
- `width` <[int]> page width in pixels.
- `height` <[int]> page height in pixels.

Expand Down
12 changes: 6 additions & 6 deletions docs/src/api/class-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ You can use [`method: Request.allHeaders`] for complete list of headers that inc
## async method: Request.headersArray
* since: v1.15
- returns: <[Array]<[Object]>>
- alias-csharp: Header
- alias-java: HttpHeader
* alias: HttpHeader
* alias-csharp: Header
- `name` <[string]> Name of the header.
- `value` <[string]> Value of the header.

Expand Down Expand Up @@ -313,8 +313,8 @@ Requests originated in a Service Worker do not have a [`method: Request.frame`]
## async method: Request.sizes
* since: v1.15
- returns: <[Object]>
- alias-csharp: RequestSizesResult
- alias-java: Sizes
* alias-csharp: RequestSizesResult
* alias-java: Sizes
- `requestBodySize` <[int]> Size of the request body (POST data payload) in bytes. Set to 0 if there was no body.
- `requestHeadersSize` <[int]> Total number of bytes from the start of the HTTP request message until (and including) the double CRLF before the body.
- `responseBodySize` <[int]> Size of the received response body (encoded) in bytes.
Expand All @@ -325,8 +325,8 @@ Returns resource size information for given request.
## method: Request.timing
* since: v1.8
- returns: <[Object]>
- alias-csharp: RequestTimingResult
- alias-java: Timing
* alias-csharp: RequestTimingResult
* alias-java: Timing
- `startTime` <[float]> Request start time in milliseconds elapsed since January 1, 1970 00:00:00 UTC
- `domainLookupStart` <[float]> Time immediately before the browser starts the domain name lookup for the
resource. The value is given in milliseconds relative to `startTime`, -1 if not available.
Expand Down
12 changes: 6 additions & 6 deletions docs/src/api/class-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ You can use [`method: Response.allHeaders`] for complete list of headers that in
## async method: Response.headersArray
* since: v1.15
- returns: <[Array]<[Object]>>
- alias-csharp: Header
- alias-java: HttpHeader
* alias: HttpHeader
* alias-csharp: Header
- `name` <[string]> Name of the header.
- `value` <[string]> Value of the header.

Expand Down Expand Up @@ -121,8 +121,8 @@ Returns the matching [Request] object.
## async method: Response.securityDetails
* since: v1.13
- returns: <[null]|[Object]>
- alias-csharp: ResponseSecurityDetailsResult
- alias-java: SecurityDetails
* alias: SecurityDetails
* alias-csharp: ResponseSecurityDetailsResult
- `issuer` ?<[string]> Common Name component of the Issuer field.
from the certificate. This should only be used for informational purposes. Optional.
- `protocol` ?<[string]> The specific TLS protocol used. (e.g. `TLS 1.3`). Optional.
Expand All @@ -138,8 +138,8 @@ Returns SSL and other security information.
## async method: Response.serverAddr
* since: v1.13
- returns: <[null]|[Object]>
- alias-csharp: ResponseServerAddrResult
- alias-java: ServerAddr
* alias-csharp: ResponseServerAddrResult
* alias-java: ServerAddr
- `ipAddress` <[string]> IPv4 or IPV6 address of the server.
- `port` <[int]>

Expand Down
4 changes: 2 additions & 2 deletions docs/src/api/class-screencast.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ await page.screencast.stop();
### option: Screencast.start.onFrame
* since: v1.59
- `onFrame` <[function]\([Object]\): [Promise]>
- alias: ScreencastFrame
* alias: ScreencastFrame
- `data` <[Buffer]> JPEG-encoded frame data.
- `viewportWidth` <[int]> Width of the page viewport at the time the frame was captured.
- `viewportHeight` <[int]> Height of the page viewport at the time the frame was captured.
Expand All @@ -57,7 +57,7 @@ The quality of the image, between 0-100.
* since: v1.59
* langs: js
- `size` ?<[Object]>
- alias-csharp: ScreencastSize
* alias-csharp: ScreencastSize
- `width` <[int]> Max frame width in pixels.
- `height` <[int]> Max frame height in pixels.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/api/class-tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ Group name shown in the trace viewer.
### option: Tracing.group.location
* since: v1.49
- `location` ?<[Object]>
- alias-java: Location
* alias: Location
- `file` <[string]>
- `line` ?<[int]>
- `column` ?<[int]>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/api/class-weberror.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Unhandled error that was thrown.
## method: WebError.location
* since: v1.60
- returns: <[Object]>
- alias: WebErrorLocation
* alias: WebErrorLocation
- `url` <[string]> URL of the resource.
- `line` <[int]> 0-based line number in the resource.
- `column` <[int]> 0-based column number in the resource.
Loading
Loading