You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update to appium 5.0.0
Their driver has some removed methods (LaunchApp/CloseApp) which seem to be now implemented for windows.
Also removed an extra explicit ref to system.drawing.common since it comes in transitively from appium.webdriver package (and the version was causing issues since the newer appium.webdriver uses a newer version).
* Fix windows launchapp/closeapp for newer appium
In Appium's dotnet driver in v5.0.0 they removed `LaunchApp` from the driver: appium/dotnet-client#766
The deprecation suggests using `ActivateApp` as an alternative, but that throws an error saying it's not implemented on the windows driver.
Curiously, `CloseApp` which was also marked as deprecated was _moved_ from the base appium driver to the `WindowsDriver` here: appium/dotnet-client#773
I think the same treatment should have been done to the `LaunchApp` method since there's no alternative in windows.
For now the workaround is to invoke the command manually:
`windowsDriver.ExecuteScript("windows: launchApp", [_app.GetAppId()]);`
0 commit comments