Skip to content

Commit

Permalink
feat: add existing checks for android and xcuitest (#649)
Browse files Browse the repository at this point in the history
* chore: add existing checks for android and xcuitest

* update readme
  • Loading branch information
KazuCocoa authored Jan 19, 2024
1 parent 0e118b4 commit c9507d6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ This snippet, taken from [example directory](example), is a script written as an

Each client needs [each finder](finder) module to handle [Finders](#Finders). Appium Flutter Driver communicates with the Dart VM directory in the `FLUTTER` context.

### Doctor
Since driver version 2.4.0 you can automate the validation for the most of the above requirements as well as various optional ones needed by driver extensions by running the `appium driver doctor flutter` server command.
The check runs for Android for UIAutomator2 driver and iOS for XCUITest driver.

### Note
- Flutter context does not support page source
- Please use `getRenderTree` command instead
Expand Down
18 changes: 13 additions & 5 deletions driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@
"iOS",
"Android"
],
"mainClass": "FlutterDriver"
"mainClass": "FlutterDriver",
"doctor": {
"checks": [
"./node_modules/appium-uiautomator2-driver/build/lib/doctor/required-checks.js",
"./node_modules/appium-uiautomator2-driver/build/lib/doctor/optional-checks.js",
"./node_modules/appium-xcuitest-driver/build/lib/doctor/required-checks.js",
"./node_modules/appium-xcuitest-driver/build/lib/doctor/optional-checks.js"
]
}
},
"bin": {},
"directories": {
Expand All @@ -48,7 +56,7 @@
"clean-dependency": "rm -rf node_modules && rm -f package-lock.json"
},
"peerDependencies": {
"appium": "^2.0.0"
"appium": "^2.4.1"
},
"devDependencies": {
"@appium/eslint-config-appium": "^8.0.4",
Expand All @@ -69,10 +77,10 @@
},
"dependencies": {
"appium-adb": "^11.0.1",
"appium-android-driver": "^7.0.2",
"appium-android-driver": "^7.5.1",
"appium-ios-device": "^2.4.1",
"appium-uiautomator2-driver": "^2.29.4",
"appium-xcuitest-driver": "^5.8.1",
"appium-uiautomator2-driver": "^2.39.0",
"appium-xcuitest-driver": "^5.13.0",
"asyncbox": "^3.0.0",
"bluebird": "^3.1.1",
"lodash": "^4.0.0",
Expand Down

0 comments on commit c9507d6

Please sign in to comment.