Add back WebDriver support - #2324
Conversation
This reverts commit b4426ed.
|
during conversation of the env flag, I saw a way to perhaps be able to disable it completely on webview2 which would bring it up to feature parity of webkit2gtk. If that works, then I will flesh out the api in Wry to be able to disable it and then expose it somewhere for Tauri to be able to set it or not. This would allow developers to completely disable it at compile time, and only enable it when building for automation specifically |
Looks like the blink renderer flag only disables setting the |
|
I think that the I'm going to un-draft this, although I suggest reviewers to run the examples a number of times each on their platform - especially the multiwindow example. I myself will be testing it on various Linux and Window variations today |
This reverts commit b4426ed.
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
The PR fulfills these requirements:
fix: #xxx[,#xxx], where "xxx" is the issue number)If adding a new feature, the PR's description includes:
Other information:
Hopefully this time with less multi-window bugs.
I'm marking this as a draft for right now because we currently use
TAURI_AUTOMATION=trueenvironmental variable to detect if we should enable automation on linux. I was thinking that some people might set that true in their shell or profile on their development machine, and may unknowning affect their other Tauri projects. Should we expose some sort of config setting to allow them to set their own env var name to watch? Maybe something on the config like:{ /* ... snip ... */ "webdriver": { "flag": { "name": "MY_APP_AUTOMATION", "value": "true", } } /* ... snip ... */ }and maybe we default value the name of the application from cargo env +
_AUTOMATIONwithtrueas the value. Thoughts?