-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Appium.WebDriver@5.0.0 compatibility with WinAppDriver #487
Comments
I don't see any point in adding the support of the legacy JWP protocol into the driver just because Microsoft has abandoned the support for their WAD server. Also, it still works being used together with Appium as the latter is capable of requests transformation between W3C<>JWP. |
You could also consider creating a fork of the project |
Hi! Any news on this topic? I'm facing the same problem on my project and so far we could not find any solution in order to be able to use our WinAppDriver testcases in case we migrate to Selenium v4 + Appium driver. Thanks in advance |
@dtopuzov
Note* Basically all "Action" calls will fail, see: |
Is my current understanding of the state of Appium/WinAppDriver correct?
So essentially, we're forced into a choice:
Is this accurate? |
@grokys 5.0.0 beta worked for me with winapp driver. Can you please give an example what is not working for you? |
@Dor-bl I'm seeing the problem described by this issue:
Specifically, I see:
|
@Dor-bl. Hello. How did you work successfully in version v5.0.0-beta02? Description Version Repro Steps using OpenQA.Selenium.Appium.Windows;
using System;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
const string appId = @"C:\Program Files\WindowsApps\Microsoft.WindowsNotepad_11.2208.25.0_x64__8wekyb3d8bbwe\Notepad\Notepad.exe";
var appiumOptions = new OpenQA.Selenium.Appium.AppiumOptions();
appiumOptions.App = appId;
var _ = new WindowsDriver(new Uri("http://127.0.0.1:4723"), appiumOptions);
}
}
}
@Dor-bl, @akinsolb, @licanhua, @timotiusmargo. Can you fix it? Or just upgrade the current Similar issue: |
@yizhao5 I guess you didn't use appium or something is wrong in the middle. WinAppDriver is expecting |
@licanhua, thanks for your reply. Yes, @Dor-bl. The customers' requirement is hoping to use new features of Selenium 4. The function of |
Indeed, I can see this error as well. |
@yizhao5 looking over at your comment it's not possible to update the dependency package of |
@Dor-bl We're running WinAppDriver (1.2.1) alone as we're only testing desktop apps. I'm still seeing this issue with Our UI tests and page object models are growing rapidly, so we want try to get on a sustainable path. There were a lot of code changes going from the old |
@kfertitta Sorry for the late response, basically as long as Microsoft doesn't decide to allocate resources to the WinAppDriver projects our hands are tied here since the Appium-DotNet client fully supports W3C protocol while the WinAppDriver doesn't. |
@Dor-bl Thanks much for the reply. Indeed, we are trying to get attention on the Microsoft side. It is the only way this can move forward it seems. As our UI testing code base grows, we continually question if it's wise to continue to build upon a foundation that has such a questionable future. And yet, there doesn't really seem to be a better alternative out there for desktop testing. Though we're willing to pay for a commercial solution, I'm not convinced those would actually be as good. Hard to know where to go from here. |
@kfertitta I took a quick look again at my configuration when running the Windows Integration tests, maybe this will assist you. Appium Server v2.0.0-beta.xx with the above configuration, I was able to run a basic test even when I pass appium:app |
@Schepetkov in order to use "appium:app" you will need to start the Appium server that will act as a proxy, rather than starting the WinAppDriver |
I am closing this issue since Microsoft has no intentions of maintaining its WinAppDriver in the near future. |
So the only way forward for projects that has UWP and WPF that use Selenium/Appium is to refactor to FlaUI? Appium v5 left WAD and seleniums action class is also deprecated. |
@PeterExtrapreneur, I didn't drop WAD from v5; I don't see a reason to maintain that driver if Microsoft doesn't, either. |
Description
Appium.WebDriver@5.0.0-beta01 can not work with https://github.com/microsoft/WinAppDriver directly.
The reason is
WinAppDriver
wantapp
capability to be set, whileAppium.WebDriver
prefix and makes itappium:app
.Referace:
https://github.com/appium/appium-dotnet-driver/blob/release/5.0.0/src/Appium.Net/Appium/AppiumOptions.cs#L15
To keep compatiblity with WinAppDriver I would like to have a way to create cabalities object that allows me to have
app
with the prefix.I understand that ideally the fix should be on WinAppDriver side, but currently it still using deprecated JSON wire protocol :(
Environment
Details
The use case is:
appium
.The text was updated successfully, but these errors were encountered: