flutter_driver package provides tools to create instrumented apps and drive those apps from a test suite
Questions tagged [flutterdriver]
78 questions
2
votes
1 answer
Access flutter tests result in tearDownAll
I need to access the tests result in tearDownAll callback. I want to check if any of the tests failed during the execution.
tearDownAll(() async {
final success = // code here
});
I researched classes like Invoker, Declarer, Engine,…

tomrozb
- 25,773
- 31
- 101
- 122
2
votes
0 answers
Listener or rule for flutter_driver tests, to make automatically screenshot, if any one test failed
Hello!
There is huge trouble with taking automatically screenshot in flutter, if any test failed in test suite. In general I mean the same solution as it working in JUnit or TestNG.
Also I'm tried to wrap all test cases in try/catch, but it didn't…

Alexandr
- 21
- 2
2
votes
0 answers
How can I pass configuration values to an app launched in a Flutter integration test?
When you run a Flutter integration test, the framework launches your app. I would like to pass some configuration values (e.g. backend API URLs) to the app to use when it starts up. There aren't a fixed set of configuration values, for example, the…

Matt R
- 9,892
- 10
- 50
- 83
1
vote
0 answers
How to identify and click on a html element using flutter driver?
My flutter app has a html link
return Padding(
padding: const EdgeInsets.all(16.0),
child: Center(
child: Html(
data: message,
style: {"body": Style(color: Colors.white), "a": Style(color:…

ma5039
- 11
- 2
1
vote
1 answer
How to configure debug Flutter integration test on Android Studio
I can run this command in the terminal to execute integration test on real device
flutter drive --target=test_driver/app.dart
But I don't know how to create Run/Debug configuration on Android Studio so I can debug the test.
Please help me.

dante
- 984
- 3
- 10
- 24
1
vote
0 answers
Flutter integration test does not work with Firefox
Hi I have a problem running flutter drive with geckodriver (my sys macos with M1)
The command that I'm using:
flutter drive \
--driver=test_driver/integration_test.dart \
--target=integration_test/app_test.dart \
-d web-server…
1
vote
0 answers
Can I create and use the flutter driver autonomous test as apk
I use flutter driver to test the UIs in my application autonomously.
Instead of creating this process with commands from the terminal constantly
Is it possible to start the test once I create an apk and every time I open the application?
Can I…

ömer şahin
- 45
- 4
1
vote
2 answers
How to see line number of failure line on flutter integration test?
EDIT: Found issue at flutter issue list: https://github.com/flutter/flutter/issues/65952
When there is a failure on flutter drive - integration tests, where do I look for - for the line number at which the failure occurred? I can't seem to find it…

Ajay Gautam
- 997
- 12
- 14
1
vote
1 answer
Flutter Driver - How to know which "waitFor" command has failed?
I am using Flutter Driver to write some integration tests for our app and I am trying to use the waitFor command to wait until an element has appeared.
The command works well and waits for my element, or fails when it hasn't found it. My problem is…

Ru Cindrea
- 703
- 2
- 5
- 16
1
vote
0 answers
Is there a way to touch the screen when testing with a flutter?
There is a variable called dx,dy inside the offset, is there a way to touch a particular location using this variable?
Or is there another way?
I'd like to touch any screen on the whole screen.

김민진
- 49
- 7
1
vote
1 answer
How does Flutter driver work with Android?
In android world to run UI test with ADB, you need to execute this command
adb shell am instrument -w com.tarek360.sample.test
but before running this command you need to install your test package and main application Android package files (.apk…

Tarek360
- 1,251
- 1
- 13
- 19
1
vote
2 answers
Flutter driver with custom OTP verification and native functions (Toast)
I'm using flutter to develop apps. Now stuck on the test cases,
I referred flutter driver for testing and it is working fine for simple UIs and flows.
I want to go through the login part, and I have an OTP verification section there, how do I pass…

Afinas EM
- 2,755
- 1
- 15
- 28
1
vote
1 answer
Flutter driver how to wait for specific element to have specific text
I experience flakiness in my flutter driver tests.
The following code:
await driver.tap(find.byValueKey('first-name-field'));
await driver.enterText('');
await Future.delayed(Duration(milliseconds: 17), () {});
expect(
await…

Chris Rutkowski
- 1,774
- 1
- 26
- 36
0
votes
0 answers
QAF Flutter driver is trying to click on element that is not present and get's stuck there
This is how element is defined
@FindBy(locator = "flutter-valuekey=xxx")
public FlutterElement btnPost;
And then I'm just doing
btnPost.click();
Following is the log from appium. I can see that there is an expeception.
Below is the console…

Piyush Sharma
- 71
- 1
- 8
0
votes
0 answers
Unable to automate flutter app using appium because of the incompatibility of flutter_driver_extension
I'm following this https://testingbot.com/support/mobile/flutter.html#start reference to setup flutter app for automation using appium with java and maven.
However, when asked with developer, it was found that the flutter_driver_extension is…