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
96 changes: 96 additions & 0 deletions .azure-pipelines/publish-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Trigger: any `v*` release tag (e.g. v1.40.0).
# Can also be queued manually from the ADO UI.
trigger:
tags:
include:
- v*
exclude:
- v*-*

pr: none

parameters:
- name: releaseChannel
displayName: "IMPORTANT: set this to 'canary' when triggering manually"
type: string
default: stable
values:
- stable
- canary

resources:
repositories:
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release

extends:
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
pool:
name: DevDivPlaywrightAzurePipelinesUbuntu2204
os: linux
sdl:
sourceAnalysisPool:
name: DevDivPlaywrightAzurePipelinesWindows2022
# The image must be windows-based due to restrictions of the SDL tools. See: https://aka.ms/AAo6v8e
os: windows
stages:
- stage: Publish
jobs:
- job: PublishDocker
displayName: "Publish Docker images to ACR"
# arm64 images are cross-built under QEMU emulation, which is slow.
timeoutInMinutes: 360
steps:
- checkout: self
fetchDepth: 0
displayName: "Checkout code"

- task: UseNode@1
inputs:
version: '22.x'
displayName: "Install Node.js"

# Relocate the Docker data-root to the large /mnt volume: this job builds
# 6 images (jammy/noble/resolute x amd64/arm64) and `docker system prune`s
# between them, so the default disk fills up.
- task: Bash@3
displayName: "Setup docker"
inputs:
targetType: "inline"
script: |
set -x
sudo service docker stop
sudo mkdir -p /etc/docker
echo '{ "data-root": "/mnt/docker" }' | sudo tee /etc/docker/daemon.json
sudo service docker start

# Register QEMU/binfmt handlers so `docker build --platform linux/arm64`
# works on the amd64 host. Equivalent to docker/setup-qemu-action@v4.
- task: Bash@3
displayName: "Set up QEMU for arm64 builds"
inputs:
targetType: "inline"
script: docker run --privileged --rm tonistiigi/binfmt --install arm64

- script: npm ci
displayName: "npm ci"

- script: npm run build
displayName: "npm run build"

- task: AzureCLI@2
displayName: "Login to ACR via OIDC"
inputs:
azureSubscription: "Playwright-CDN"
scriptType: "bash"
scriptLocation: "inlineScript"
inlineScript: "az acr login --name playwright"

- task: Bash@3
displayName: "Build & publish Docker images"
inputs:
targetType: "inline"
script: "./utils/docker/publish_docker.sh ${{ parameters.releaseChannel }}"
22 changes: 4 additions & 18 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "publish release - npm, driver, trace viewer"
name: "publish release - npm, trace viewer"

on:
workflow_dispatch:
Expand All @@ -11,14 +11,13 @@ on:
types: [published]

jobs:
publish-npm-and-driver:
name: "publish NPM and driver"
publish-npm:
name: "publish NPM"
runs-on: ubuntu-24.04
if: github.repository == 'microsoft/playwright'
permissions:
id-token: write # This is required for OIDC login (azure/login, NPM publish) to succeed
id-token: write # This is required for OIDC login (NPM publish) to succeed
contents: read # This is required for actions/checkout to succeed
environment: allow-publish-driver-to-cdn # This is required for OIDC login (azure/login)
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
Expand Down Expand Up @@ -50,19 +49,6 @@ jobs:
if: github.event_name == 'release' && github.event.action == 'published'
run: utils/publish_all_packages.sh --release

- name: Azure Login
uses: azure/login@v3
with:
client-id: ${{ secrets.AZURE_PW_CDN_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_PW_CDN_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_PW_CDN_SUBSCRIPTION_ID }}
- name: build & publish driver
env:
AZ_UPLOAD_FOLDER: ${{ github.event_name == 'release' && 'driver' || 'driver/next' }}
run: |
utils/build/build-playwright-driver.sh
utils/build/upload-playwright-driver.sh

publish-trace-viewer:
name: "publish Trace Viewer to trace.playwright.dev"
runs-on: ubuntu-24.04
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/tests_secondary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,6 @@ jobs:
env:
PWTEST_CHANNEL: ${{ matrix.channel }}

build-playwright-driver:
name: "build-playwright-driver"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20
- run: npm ci
- run: npm run build
- run: utils/build/build-playwright-driver.sh

test_android:
name: Android
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
Expand Down
34 changes: 34 additions & 0 deletions docs/src/api/class-elementhandle.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ When all steps combined have not finished during the specified [`option: timeout
### option: ElementHandle.check.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.check.signal = %%-input-signal-%%

### option: ElementHandle.check.trial = %%-input-trial-%%
* since: v1.11

Expand Down Expand Up @@ -239,6 +241,8 @@ When all steps combined have not finished during the specified [`option: timeout
### option: ElementHandle.click.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.click.signal = %%-input-signal-%%

### option: ElementHandle.click.trial = %%-input-trial-%%
* since: v1.11

Expand Down Expand Up @@ -298,6 +302,8 @@ When all steps combined have not finished during the specified [`option: timeout
### option: ElementHandle.dblclick.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.dblclick.signal = %%-input-signal-%%

### option: ElementHandle.dblclick.trial = %%-input-trial-%%
* since: v1.11

Expand Down Expand Up @@ -560,6 +566,8 @@ Value to set for the `<input>`, `<textarea>` or `[contenteditable]` element.
### option: ElementHandle.fill.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.fill.signal = %%-input-signal-%%

## async method: ElementHandle.focus
* since: v1.8
* discouraged: Use locator-based [`method: Locator.focus`] instead. Read more about [locators](../locators.md).
Expand Down Expand Up @@ -611,6 +619,8 @@ When all steps combined have not finished during the specified [`option: timeout
### option: ElementHandle.hover.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.hover.signal = %%-input-signal-%%

### option: ElementHandle.hover.trial = %%-input-trial-%%
* since: v1.11

Expand Down Expand Up @@ -739,6 +749,8 @@ Time to wait between `keydown` and `keyup` in milliseconds. Defaults to 0.
### option: ElementHandle.press.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.press.signal = %%-input-signal-%%

## async method: ElementHandle.querySelector
* since: v1.9
* discouraged: Use locator-based [`method: Page.locator`] instead. Read more about [locators](../locators.md).
Expand Down Expand Up @@ -788,6 +800,8 @@ Returns the buffer with the captured screenshot.
### option: ElementHandle.screenshot.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.screenshot.signal = %%-input-signal-%%

### option: ElementHandle.screenshot.maskColor = %%-screenshot-option-mask-color-%%
* since: v1.34

Expand All @@ -813,6 +827,8 @@ See [scrolling](../input.md#scrolling) for alternative ways to scroll.
### option: ElementHandle.scrollIntoViewIfNeeded.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.scrollIntoViewIfNeeded.signal = %%-input-signal-%%

## async method: ElementHandle.selectOption
* since: v1.8
* discouraged: Use locator-based [`method: Locator.selectOption`] instead. Read more about [locators](../locators.md).
Expand Down Expand Up @@ -895,6 +911,8 @@ await handle.SelectOptionAsync(new[] {
### option: ElementHandle.selectOption.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.selectOption.signal = %%-input-signal-%%

### param: ElementHandle.selectOption.element = %%-python-select-options-element-%%
* since: v1.8

Expand Down Expand Up @@ -925,6 +943,8 @@ If the element is inside the `<label>` element that has an associated [control](
### option: ElementHandle.selectText.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.selectText.signal = %%-input-signal-%%

## async method: ElementHandle.setChecked
* discouraged: Use locator-based [`method: Locator.setChecked`] instead. Read more about [locators](../locators.md).
* since: v1.15
Expand Down Expand Up @@ -962,6 +982,8 @@ When all steps combined have not finished during the specified [`option: timeout
### option: ElementHandle.setChecked.timeout = %%-input-timeout-js-%%
* since: v1.15

### option: ElementHandle.setChecked.signal = %%-input-signal-%%

### option: ElementHandle.setChecked.trial = %%-input-trial-%%
* since: v1.15

Expand All @@ -988,6 +1010,8 @@ This method expects [ElementHandle] to point to an
### option: ElementHandle.setInputFiles.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.setInputFiles.signal = %%-input-signal-%%

## async method: ElementHandle.tap
* since: v1.8
* discouraged: Use locator-based [`method: Locator.tap`] instead. Read more about [locators](../locators.md).
Expand Down Expand Up @@ -1027,6 +1051,8 @@ When all steps combined have not finished during the specified [`option: timeout
### option: ElementHandle.tap.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.tap.signal = %%-input-signal-%%

### option: ElementHandle.tap.trial = %%-input-trial-%%
* since: v1.11

Expand Down Expand Up @@ -1068,6 +1094,8 @@ Time to wait between key presses in milliseconds. Defaults to 0.
### option: ElementHandle.type.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.type.signal = %%-input-signal-%%

## async method: ElementHandle.uncheck
* since: v1.8
* discouraged: Use locator-based [`method: Locator.uncheck`] instead. Read more about [locators](../locators.md).
Expand Down Expand Up @@ -1103,6 +1131,8 @@ When all steps combined have not finished during the specified [`option: timeout
### option: ElementHandle.uncheck.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.uncheck.signal = %%-input-signal-%%

### option: ElementHandle.uncheck.trial = %%-input-trial-%%
* since: v1.11

Expand Down Expand Up @@ -1136,6 +1166,8 @@ A state to wait for, see below for more details.
### option: ElementHandle.waitForElementState.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.waitForElementState.signal = %%-input-signal-%%

## async method: ElementHandle.waitForSelector
* since: v1.8
* discouraged: Use web assertions that assert visibility or a locator-based [`method: Locator.waitFor`] instead.
Expand Down Expand Up @@ -1203,5 +1235,7 @@ This method does not work across navigations, use [`method: Page.waitForSelector
### option: ElementHandle.waitForSelector.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: ElementHandle.waitForSelector.signal = %%-input-signal-%%

### option: ElementHandle.waitForSelector.strict = %%-input-strict-%%
* since: v1.15
2 changes: 2 additions & 0 deletions docs/src/api/class-filechooser.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,5 @@ they are resolved relative to the current working directory. For empty array, cl

### option: FileChooser.setFiles.timeout = %%-input-timeout-js-%%
* since: v1.8

### option: FileChooser.setFiles.signal = %%-input-signal-%%
Loading
Loading