Skip to content

Commit e53ecdc

Browse files
committed
version 1.0.0
1 parent cb45b4f commit e53ecdc

File tree

10 files changed

+3763
-7885
lines changed

10 files changed

+3763
-7885
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ selenium-appium is [selenium-webdriver](https://seleniumhq.github.io/selenium/do
55
[![Monthly Downloads](https://img.shields.io/npm/dm/selenium-appium.svg)](https://npmjs.org/package/selenium-appium)
66
[![Build Status](https://dev.azure.com/ReactNativeWindows/selenium-appium/_apis/build/status/PR?branchName=master)](https://dev.azure.com/ReactNativeWindows/selenium-appium/_build/latest?definitionId=3&branchName=master)
77

8+
## Break changes
9+
1. selenium-appium@1.0.0 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+
811
### Features
912
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.
1013
2. Supports PageObject Pattern for selenium-webdriver

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ steps:
8686
- task: Windows Application Driver@0
8787
inputs:
8888
OperationType: 'Start'
89-
WADArguments: 127.0.0.1 4723/wd/hub
89+
WADArguments: 127.0.0.1 4723
9090
AgentResolution: 1080p
9191

9292
- task: CmdLine@2

example/README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
## 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
33
2. cd to example directory and install packages.
44

55
`yarn install` or `npm install`
66

7-
3. start appium
7+
3. start winappdriver or ywinappdriver
88

9-
`yarn run appium` or `npm run appium`
9+
`npx winappdriver` or `npx ywinappdriver`
1010

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
1613

1714
4. run jest test
1815

example/__tests__/By2.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { capabilities } from '../Setup'
99

1010
jest.setTimeout(50000);
1111

12-
const url = 'http://localhost:4723/wd/hub'
12+
const url = 'http://localhost:4723'
1313

1414
describe('By2', () => {
1515
test("By2 used in selenium-webdriver.WebDriver", async () => {

example/__tests__/Driver2.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { capabilities } from '../Setup';
44

55
jest.setTimeout(50000);
66

7-
const url = 'http://localhost:4723/wd/hub'
7+
const url = 'http://localhost:4723'
88

99
describe('driver', () => {
1010
test("simple webdriver2, and driver create from WebDriver", async () => {

example/package-lock.json

Lines changed: 3741 additions & 7864 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616
"@babel/preset-typescript": "^7.12.1",
1717
"@types/jest": "^26.0.15",
1818
"@types/selenium-webdriver": "^4.0.10",
19-
"selenium-appium": "^0.0.16",
20-
"appium": "1.18.3",
2119
"babel-jest": "^26.6.1",
2220
"jest": "^26.6.1",
2321
"jest-junit-reporter": "1.1.0",
22+
"selenium-appium": "^1.0.0",
2423
"selenium-webdriver": "^4.0.0-alpha.7",
25-
"typescript": "^4.0.5"
24+
"typescript": "^4.0.5",
25+
"wdio-ywinappdriver-service": "^0.2.53",
26+
"winappdriver": "^0.0.4"
2627
},
2728
"jest": {
2829
"testResultsProcessor": "./node_modules/jest-junit-reporter"

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "selenium-appium",
3-
"version": "0.0.16",
3+
"version": "1.0.0",
44
"description": "A selenium-webdriver extension to support native app testing by Mobile JSON Wire Protocol which appium supports, also provides easy wait for element for pages or navigation among pages, and supports PageObject pattern",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -23,7 +23,7 @@
2323
"license": "MIT",
2424
"devDependencies": {
2525
"@types/selenium-webdriver": "^4.0.10",
26-
"typescript": "^4.0.5"
26+
"typescript": "^4.1.2"
2727
},
2828
"peerDependencies": {
2929
"selenium-webdriver": "^4.0.0-alpha.7"

src/Driver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export class WebDriver2 implements IWebDriver2 {
211211
this.webDriver = webDriver;
212212
}
213213

214-
startWithCapabilities(capabilities: {} | Capabilities, url: string = "http://localhost:4723/wd/hub"): Promise<void> {
214+
startWithCapabilities(capabilities: {} | Capabilities, url: string = "http://localhost:4723"): Promise<void> {
215215
return new Promise<void>((resolve, reject) => {
216216
if (capabilities) {
217217
new Builder()

0 commit comments

Comments
 (0)