Open satishautade opened 5 years ago
@hassanuz : It has been quite some time and I wonder if this issue has caught anyone's attention yet? Resolution to this issue is critical for us to move ahead with WinAppDriver. We want to be able to write our test code in Javascript using WebDriverIO framework. Any help on this issue would be much appreciated.
Thanks, Satish.
Its same for me.
I can´t use WinAppDriver with webdriverIO
I recently started using the WebDriverIO/Appium for automating Windows native apps using WinAppDriver. My test setup looks like following:
Webdriver IO module interpretes a command to have failed, if response object returned from a driver does NOT have a
value
. Refer: https://github.com/webdriverio/webdriverio/blob/67aa4d5296f60448a8ccccc43fa0fa9064a67bd6/packages/webdriver/src/utils.js#L23I raised a bug in webdriverio project about this here. But the resolutions seems to be on the WinAppDriver side (https://github.com/webdriverio/webdriverio/issues/4105#issuecomment-504342332). Please refer to comments on this issue. Hence raising it here.
Scenario that fails: When using webdriverio commands like 'click' or 'setValue', I see these actions being executed successfully on the application under test but webdriverio test fails with unknown error.
WDIO test logs below:
To Reproduce I have provided all the example logs from WinAppDriver/Appium side and WDIO Test runner side. Happy to create a github project but, at the moment, I don't believe that its strictly needed.
Expected behavior Since the commands are interacting with the application successfully, WDIO test should not return any error. It should just pass.
Log
When I looked closely at the Appium server logs, I noticed webdriverio commands that perform actions like
click
orsetValue
, do not have avalue
property in the object returned. e.g.Appium server log below:
Compare this with other commands that query the application for an element or text, for these commands, underlying WinAppDriver seems to set the value property on the returned object. e.g.
Appium server log below: