Closed adamsjoe closed 3 years ago
Ok this is a bit of an easy question.
Does WinAppDriver support ClickOnce applications?
I have found a way round this - python only, but I suspect C# will be the same. After a bit of investigation, I tried to launch the application under test the same way as each language does, that is using the full path and I got errors as I did with winappdriver. Launching the app from within the directory worked fine.
With this, I found that adding a working directory makes this work.
I'm looking to do some automation on a clickOnce application. When the application launches, it shows a dialog with yes/no buttons - before going to the main application.
I am able to launch the application and get the popup - but then get an error:
Failed to locate opened application window with appId: < path to the appref-ms > and processId yyyy
I have confirmed (using inspect.exe) that the procesId for the popup is not the one showing up in the error message. The appId is also the full path to the appref-ms file (which does seem odd, but the application does launch, so maybe that is ok..) Also seeing an HTTP 500 error appearing on the WAD output no matter which language I use.
I can't see the way around this.
I'll include both my Pythn and C# to see if anyone has any insight?
Currently using 1.2.1 from the releases page of WAP.
Python code:
C# code: