Skip to content

feat(desktop): with_automation for WebDriver - #6020

Open
Frando wants to merge 1 commit into
DioxusLabs:mainfrom
Frando:desktop-webdriver-automation-0.8
Open

Frando wants to merge 1 commit into
DioxusLabs:mainfrom
Frando:desktop-webdriver-automation-0.8

Conversation

@Frando

@Frando Frando commented Oct 28, 2026 •

Copy link
Copy Markdown

Adds WindowConfig::with_automation(bool) and Config::with_automation(bool). When set, the window's wry WebContext allows automation (set_allows_automation). Off by default.

Why: this lets WebKitWebDriver on Linux start a Dioxus desktop app as its browser and drive the webview over WebDriver, the same way tauri-driver does for Tauri apps. We use it to run end-to-end tests of a Dioxus desktop app (clicks, typing, DOM queries, screenshots) against the real webview. Without the option the app has to patch dioxus-desktop to get at the WebContext.

Notes:

  • WebKitGTK allows only one automation web context per process, so the flag is per window and meant for the main window.
  • On other platforms wry ignores the flag.

The commit is based on v0.8.0-alpha.3 and merges cleanly into main.

Lets WebKitWebDriver (Linux) start a Dioxus desktop app as its browser
and drive the webview, as tauri-driver does for Tauri: the webview's
web context allows automation when the flag is set. Off by default.

WindowConfig::with_automation sets it per window. Config::with_automation
sets it for the window opened by launch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Frando
Frando marked this pull request as ready for review October 29, 2026 09:33

This branch has not been deployed

No deployments
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.

1 participant