Skip to content
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

WinAppDriver stopped working for windows application Appium 5+ #2019

Open
PeterExtrapreneur opened this issue Jul 17, 2024 · 3 comments
Open

Comments

@PeterExtrapreneur
Copy link

Hi!

Im trying hard to update Appium to version 5 and Selenium to 4.20+ but it seems not possible anymore? (Testing target UWP & WPF apps)

As I understand it has Windows-Driver been abandoned by Microsoft? Or will this be fixed in the future? A refactor of my code-base is not optional.

```

AppiumOptions appiumOptions = new AppiumOptions();
appiumOptions.AddAdditionalCapability("app", Path);
appiumOptions.AddAdditionalCapability("deviceName", "WindowsPC");
appiumOptions.AddAdditionalCapability("ms:waitForAppLaunch", 1);
Driver = new WindowsDriver(new Uri("http://127.0.0.1:4723"), appiumOptions);

@anunay1
Copy link

anunay1 commented Jul 19, 2024

Winappdriver is not w3c compliant yet. will not work with selenium 4.

@kadakchdn
Copy link

kadakchdn commented Jul 20, 2024

WindowsDriver driver;

    @BeforeTest
    public void setUp() throws MalformedURLException
    {
    	DesiredCapabilities capabilities = new DesiredCapabilities();
    	capabilities.setCapability("platformName", "Windows");
    	capabilities.setCapability("deviceName", "WindowsPC");
      capabilities.setCapability("app", "C:\\Windows\\System32\\calc.exe);
     capabilities.setCapability("automationName", "WinAppDriver");

      URL url = new URL("http://localhost:4723");
     driver = (WindowsDriver)new RemoteWebDriver(url, capabilities);
     
    
    }

I am facing issue with launching the session, can you please the error or any mismatch


org.seleniumhq.selenium
selenium-java
4.1.0


org.testng
testng
7.4.0

io.appium java-client 9.2.3

@anunay1 @PeterExtrapreneur

@anunay1
Copy link

anunay1 commented Jul 20, 2024

Will not work with selenium 4 you need to downgrade to version 3

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

No branches or pull requests

3 participants