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
1.[email protected] The default URL is changed from `http://localhost:4723/wd/hub` to `http://localhost:4723`. The goal is to remove appium from the project and use [winappdriver](https://www.npmjs.com/package/winappdriver) to launch and stop WinAppDriver
10
+
8
11
### Features
9
12
1. A bridge to make selenium-webdriver to drive appium for native app automation. Implement [Mobile JSON Wire Protocol Specification](https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md) locator which selenium-webdriver doesn't support.
10
13
2. Supports PageObject Pattern for selenium-webdriver
@@ -209,29 +212,32 @@ selenium-appium projected is created when I prototype automation for react-nativ
209
212
210
213
Although [WebDriverIO](https://webdriver.io/) provides webdriver for Appium, it has some restrictions:
211
214
1. Selenium has very large user base in browser automation, but [WebDriverIO API](https://webdriver.io/docs/api.html) is different from [selenium javascript API](https://seleniumhq.github.io/selenium/docs/api/javascript/)
212
-
2. WebDriverIO has problem to support WinAppDriver, for example, https://github.com/webdriverio/webdriverio/pull/4369
213
-
215
+
2.[Already fixed] WebDriverIO has problem to support WinAppDriver, for example, https://github.com/webdriverio/webdriverio/pull/4369
214
216
215
217
Unfortunately selenium-webdriver doesn't support [
216
218
Mobile JSON Wire Protocol Specification](https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md). And that's why selenium-appium project is created.
217
219
218
-
219
220
## Note
220
221
To know more about how to integrate JavaScript test runner and WinAppDriver for UI automation, please refer to:
222
+
-[WinAppDriver + WebDriverIO example](https://github.com/licanhua/wdio-winappdriver-example). Example to demostrate WinAppDriver and WebDriver integration without appium dependency
223
+
221
224
-[E2E test](https://github.com/microsoft/react-native-windows/blob/master/vnext/docs/E2ETest.md) on React Native for Windows. [MoreAboutE2ETest.md](https://github.com/microsoft/react-native-windows/blob/master/vnext/docs/MoreAboutE2ETest.md) provides some background why React Native Windows choose WinAppDriver and node test runner for E2E testing.
222
225
223
226
-[winappdriver-js-webdriver-example](https://github.com/react-native-windows/winappdriver-js-webdriver-example), Which includes:
224
227
1. Jest + selenium-webdriver + WinAppDriver
225
-
2. Jasmine + WebDriverIO + WinAppDriver
228
+
2. Jasmine + WebDriverIO + WinAppDriver. This part is obselete, please refer to [WinAppDriver + WebDriverIO example](https://github.com/licanhua/wdio-winappdriver-example) for newer change.
An example of jest, selenium-webdriver and winappdriver integration
229
232
230
233
-[selenium-appium](https://github.com/react-native-windows/selenium-appium). selenium-appium is selenium-webdriver extension to make selenium-webdriver to drive Appium to run automation for native, hybrid and mobile web and desktop apps.
231
234
232
235
-[Choose the right E2E automation framework for React Native Windows](https://medium.com/@licanhua/choose-the-right-e2e-automation-framework-for-react-native-windows-83ade8b16b52)
236
+
233
237
-[How to: Use Jest + selenium-webdriver + WinAppDriver to do Windows UI testing](https://medium.com/@licanhua/how-to-use-jest-selenium-webdriver-winappdriver-to-do-windows-ui-testing-c9d074e698ed)
238
+
234
239
-[Automated Windows UI testing by Jest + selenium-appium + selenium-webdriver + WinAppDriver](https://medium.com/@licanhua/automated-windows-ui-testing-by-jest-selenium-appium-selenium-webdriver-winappdriver-6cb708121d71)
240
+
235
241
-[Inspecting UI Elements for WinAppDriver automation using Appium Desktop](https://medium.com/@licanhua/inspecting-ui-elements-for-winappdriver-automation-using-appium-desktop-8f178b2d0d6c)
Copy file name to clipboardExpand all lines: example/README.md
+5-8
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,15 @@
1
1
## Example to do Calulator automation on Windows
2
-
1. Download and install WinAppDriver: https://github.com/microsoft/WinAppDriver/releases/download/v1.1/WindowsApplicationDriver.msi
2
+
1. Download and install WinAppDriver: https://github.com/microsoft/WinAppDriver/releases
3
3
2. cd to example directory and install packages.
4
4
5
5
`yarn install` or `npm install`
6
6
7
-
3. start appium
7
+
3. start winappdriver or ywinappdriver
8
8
9
-
`yarn run appium` or `npm run appium`
9
+
`npx winappdriver` or `npx ywinappdriver`
10
10
11
-
expect output
12
-
```
13
-
[Appium] Welcome to Appium v1.14.1
14
-
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
15
-
```
11
+
[WinAppDriver](https://github.com/microsoft/WinAppDriver) is supported by Microsoft.
12
+
[YWinAppDriver](https://github.com/licanhua/YWinAppDriver) is an open source project which implemented WinAppDriver's functionality, and is developed by Canhua Li
0 commit comments