[Flutter] Install appium-flutter-driver
Step1. pubspec.yaml
dev_dependencies:
integration_test:
sdk: flutter
Step2. android/app/build/build.gradle
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.example"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build- configuration.
minSdkVersion 24
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true //insert this line
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.multidex:multidex:2.0.1" //insert this line
}
Step3. main.dart
import 'package:flutter_driver/driver_extension.dart'; //insert this line
void main() {
enableFlutterDriverExtension(); //insert this line
runApp(const App());
}
Step4.
Semantics(
label: 'PlayButton',
child: Your UIItem
)
Last updated