Closed rohitbhoite closed 1 month ago
@rohitbhoite Please refer the sample here - https://github.com/AppiumTestDistribution/appium-flutter-integration-driver/blob/main/test/specs/test.e2e.js
Actually I am able to run these scripts on saucelab cloud but why its giving error if i try to run these tests locally.
TypeError: browser.flutterByValueKey$ is not a function
. I thinkimport FlutterIntergrationDriverService from 'wdio-flutter-by-service';
is a necessary import to use these functions which I have already added
Any idea what could be the cause of this issue while running the tests locally?
It looks like there might be a problem with how you're importing the Flutter service. Instead of importing it directly into the spec file, you should add it to the WebdriverIO configuration file.
{
"services" : ["flutter-by"]
}
I am trying to run Flutter appium tests locally but I am getting TypeError: browser.flutterByValueKey$ is not a function error. What could be the cause of this issue.
appium-flutter-integration-driver is installled.App is created as per the instructions and verified that appium server is running properly.