I think we need to support launching web apps from the system in browser automation tests

18 views
Skip to first unread message

Lu Huang

unread,
Dec 3, 2024, 11:30:14 PM12/3/24
to pwa-dev, howa...@microsoft.com
I filed a bug on new-ish behavior that prevents web apps from being launched from the system in browser automation tests (when --enable-automation switch is used and a chrome.exe --app-id=XXXX command line launches the app). This affects our (chromium devs) and app devs' ability to write useful browser automation tests for web apps. 

Web app launch from system does not work in automation tests (--enable-automation) [382108359] - Chromium

I wrote down a few options for a fix in the bug description. Appreciate everyone's thoughts on how best to address this issue. Thanks!

Daniel Murphy

unread,
Dec 6, 2024, 6:40:50 PM12/6/24
to Lu Huang, pwa-dev, howa...@microsoft.com
Interesting! I replied on the bug - I would love for us to land on something that allows third-party testing, and sadly I don't have the best view of how automated testing of Chrome works from the outside.

We have the linked doc & new CDP protocol for doing some actions to do things like install, launch, etc. I would love to try to understand what it will take to get something fully working end-to-end here in a more supported way. Should we meet perhaps?

--
You received this message because you are subscribed to the Google Groups "pwa-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pwa-dev+u...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/pwa-dev/00405679-91bb-4517-b36d-9db698f8a9d8n%40chromium.org.
Message has been deleted

Lu Huang

unread,
Dec 10, 2024, 3:43:40 PM12/10/24
to pwa-dev, Daniel Murphy, pwa-dev, howa...@microsoft.com, Lu Huang
The CDP approach looks good but I don't think it will help with the problem of not being able do process handoff in automation mode. Without process handoff, OS integration that rely on a command line (chrome.exe --app-id=.... or similar) simply won't be able to launch apps. Automation tests could launch the browser (CDP), install an app (CDP), create desktop shortcut (CDP), close app windows (CDP), have the browser wait for a change, then launch the app from the desktop shortcut (some other mechanism). At that point, no app can be launched. 

Since browser tests are not suitable for testing OS integration features end-to-end, I think it's important to be able to do so with automation tests. 
Let's find a time to discuss. Would this be a suitable topic for the FUGU sync? 

Daniel Murphy

unread,
Dec 12, 2024, 5:16:55 PM12/12/24
to Lu Huang, pwa-dev, howa...@microsoft.com
Fugu sync sounds good. I replied on the bug too - perhaps we can just have web apps launch in this state (or maybe I'm missing something)

Daniel Murphy

unread,
Dec 16, 2024, 5:33:41 PM12/16/24
to pwa-dev, Daniel Murphy, pwa-dev, howa...@microsoft.com, lu...@microsoft.com
We are planning to meet at 10am tomorrow PST to chat about potential solutions here. I'll update if the time changes. Let me know if anyone else wants to join.

To unsubscribe from this group and stop receiving emails from it, send an email to pwa-dev+unsubscribe@chromium.org.

Daniel Murphy

unread,
Dec 17, 2024, 1:02:34 PM12/17/24
to pwa-dev, howa...@microsoft.com, lu...@microsoft.com
Reply all
Reply to author
Forward
0 new messages