WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Support for Selenium 4

Open lawcrens opened this issue 2 years ago • 25 comments

Hello,

Wanted to request that WinAppDriver is supported on Selenium 4. Selenium 3 has been deprecated for a year

lawcrens avatar Dec 14 '22 22:12 lawcrens

What do you exactly mean by 'Selenium 4 support '? WinAppDriver implements W3 WebDriver standard. Selenium 4 is a client implementation that consumes W3 WebDriver API.

pm90pl avatar Dec 15 '22 09:12 pm90pl

I and many others have been getting an error when running WinAppDriver.

https://stackoverflow.com/questions/74632066/appium-winappdriver-and-selenium-4

https://stackoverflow.com/questions/72921159/winappdriver-reference-to-type-ifindsbytagname-claims-it-is-defined-in-webdr

https://stackoverflow.com/questions/74138893/selenium-4-not-compatible-with-winappdriver

The consensus is that WinAppDriver is not compatible with Selenium 4. If this is not the case, do you know how can this can be troubleshooted?

lawcrens avatar Dec 15 '22 17:12 lawcrens

One may stand to gain by considering WinAppDriver to be a moot which serves to protect Microsoft from firms that would like to nibble at their market positions (ie a product entrance barrier)

A moot does not have to be supported and isn't.

I would consider converting the application into something that can be tested without using WinAppDriver, you have tom protect your investment from obsolescence

You can learn a lot about motivation and transparency by posting a comment that some might erroneously consider disparaging

DLightstone avatar Dec 19 '22 14:12 DLightstone

I have the same question ! Please someone from Microsoft please answer !

PavanMudigondaTR avatar Jan 06 '23 18:01 PavanMudigondaTR

Hey everyone. Can anyone advise if it is going to happen? It is a kind of blocker.

farnsword avatar Jan 10 '23 11:01 farnsword

Yeah. So, the current version is not compatible with W3C WebDriver standard what makes it incompatible with Selenium 4. There is no clear roadmap for WAD and it's not open source so you have to deal it on your own. Upgrading Selenium without checking WAD compatibility was a mistake. Sorry.

pm90pl avatar Jan 10 '23 11:01 pm90pl

Well, at this point I only need to update the selenium version to 4.0 as using the latest Chrome version requires Selenium v4, so I stuck with Chrome v95. As a last resort - this repository is under an MIT license which allows forking and modification, so may try to build our own version of it. Thanks for the answer.

farnsword avatar Jan 10 '23 11:01 farnsword

But this repo contains only examples, not WinAppDriver implementation.

pm90pl avatar Jan 10 '23 12:01 pm90pl

Oh my...thanks for pointing that out. Tough luck then.

farnsword avatar Jan 10 '23 12:01 farnsword

I have this email address of Microsoft team [email protected]

PavanMudigondaTR avatar Jan 10 '23 17:01 PavanMudigondaTR

Has anybody sent them an email yet?

d2a-raudenaerde avatar Jan 13 '23 10:01 d2a-raudenaerde

The dear folks at Microsoft read the postings.

To determine it for yourself, post a disparaging comment and wait for it to be hidden or deleted

No reply means minimal support or no support

DLightstone avatar Jan 13 '23 15:01 DLightstone

Sent. I request everyone to send a email. To save time you can copy and send the below.

[email protected]

Hi WinAppDriver Team at Microsoft,

Thanks for all the great work so far!

We are looking for support for Selenium 4 Java for WinAppDriver. We would appreciate if someone could look at this thread and respond back on your plans !

https://github.com/microsoft/WinAppDriver/issues/1839#issuecomment-1382019123a

PavanMudigondaTR avatar Jan 14 '23 18:01 PavanMudigondaTR

@PavanMudigondaTR thanks for the template!. Would you please edit it and add 'Thanks for all the great work so far!' as first line? Thanks :)

d2a-raudenaerde avatar Jan 16 '23 07:01 d2a-raudenaerde

sent also, thanks! :)

nguyenquangtay avatar Jan 17 '23 08:01 nguyenquangtay

thanks everyone for bringing it up. I am also facing same issue while migrating winappdriver to work with Sel 4.

Any further update or resolution, anyone has? Would be grateful!

dmridul1827 avatar Jan 28 '23 06:01 dmridul1827

Are there some updates??? About Selenium4 + WinAppDriver ?? It is blocker for the new development about Test Automation framework.

ShinjiruPP avatar Jun 19 '23 12:06 ShinjiruPP

ShinjiruPP Generally speaking I would interpret an absence of a reply to mean - no updates planed

The preferred development environment is the one that works, not the one which uses the lasted and greatest infrastructure.

This may mean having to manually test things that are not present in the old infrastructure.

DLightstone avatar Jun 20 '23 16:06 DLightstone

Any updates or answer from Microsoft regarding this issue?

StavHayounNoiberg avatar Jul 23 '23 10:07 StavHayounNoiberg

Any update on this?

fastinggirl avatar Aug 16 '23 11:08 fastinggirl

Hi there! Seem this is an abandoned project :( I just wonder does Microsoft apply test automation for their Desktop applications and if yes, which one they're using

sunrise-soft avatar Sep 01 '23 01:09 sunrise-soft

Hi All, Since we are not having update from micro soft on this . What is the alternative approach other's are using can you please share.

RamaNarasimhaChanda avatar Oct 26 '23 16:10 RamaNarasimhaChanda

Well, obviously, for this issue, I can think of 2 workarounds/alternatives:

  • don't use Selenium 4 while using WinAppDriver, until a fix is available if ever (so stay on Selenium 3 or 2, etc.). For this particular issue, if you need to use Selenium 4, maybe use dual approach and dual version dependency management. Use Selenium 4 for web/mobile automation, then use Selenium 3 for now for desktop automation, within your test framework.

  • look into WinAppDriver alternative tools (there are some), and see which of those support (1) WebDriver API/protocol, and (2) Selenium 4 version of the protocol.

There are alternative tools mentioned in various comments in #1550, and I sort of compiled a list in https://github.com/Accruent/robotframework-applicationlibrary/issues/72#issuecomment-1745389341

daluu avatar Oct 30 '23 21:10 daluu

  • Install Nodejs and WinAppDriver
  • Install Appium 2+ version : npm i -g appium
  • Install appium windows driver : appium driver install --source=npm appium-windows-driver
  • run appium command
  • execute the scripts

Its working.

AG-QALab avatar Feb 03 '24 08:02 AG-QALab

Any update from MS on this one?

alatriste1982 avatar Jul 25 '24 14:07 alatriste1982