Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Driver not working when on imported package #576

Closed
jakeataofl opened this issue Sep 21, 2023 · 3 comments
Closed

Driver not working when on imported package #576

jakeataofl opened this issue Sep 21, 2023 · 3 comments

Comments

@jakeataofl
Copy link

Hello, been using appium-flutter-driver for all of our apps and been smooth-sailing since 👍
We have a new project that is a little different from our existing ones that is causing automation struggles for my team.

We have 2 repositoryies:
RepositoryA which is the main app, has the main.dart and the command to enable flutter automation through the app.
RepositoryB which is a feature only that gets imported in RepositoryA, no main.dart on this repo.

RepositoryA has 3 screens: Screen1, Screen2, Screen3
RepositoryB has Screen4.

When we launch the app, we are able to navigate through RepositoryA's screens via automation, but upon reaching Screen4 (RepositoryB's), we can't anymore. We have defined keys on repositoryB as well, but seems everything we do automation related on this screen does nothing.

Attached the ff: pytest script converted to txt file, appium logs

pytest_test.txt

Screen4-automation-not-working-appiumlogs.txt

Any insights are appreciated and please do let me know if more info is needed 😄

@KazuCocoa
Copy link
Member

Does enableFlutterDriverExtension() need to be installed in the repository B side as well...?

@jakeataofl
Copy link
Author

@KazuCocoa I'm not sure, it's being imported as a library to respositoryA.

And I only know that enableFlutterDriverExtension() is to be set in lib/main.dart which repositoryB doesn't have.

@jakeataofl
Copy link
Author

#181 (comment)

Did the trick for us. Thought the imported package was causing this since that was a difference we saw from all our other apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants