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

Re-open enterText() only works the first time #2480

Open
GChanathip opened this issue Jan 6, 2025 · 3 comments
Open

Re-open enterText() only works the first time #2480

GChanathip opened this issue Jan 6, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@GChanathip
Copy link
Contributor

Steps to reproduce

  1. clone https://github.com/GChanathip/patrol_example
  2. switch to branch patrol-issue
  3. run patrol test patrol test

Actual results

method enterText() work only first time.
I started facing this issue after PR #2314 was merged.
This PR #2461 can't solve my issue.

Logs

Logs
<!-- Replace this line with your logs. Do not remove the backticks! -->

Patrol version

patrol: 3.13.2

Patrol Doctor output

Patrol Doctor output
Patrol doctor:
Patrol CLI version: 3.4.1
Flutter command: flutter 
  Flutter 3.24.5 • channel stable
Android: 
• Program adb found in /opt/homebrew/bin/adb
• Env var $ANDROID_HOME set to /Users/gamech/Library/Android/sdk
iOS / macOS: 
• Program xcodebuild found in /usr/bin/xcodebuild
• Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller

Flutter Doctor output

Flutter Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.5, on macOS 15.2 24C101 darwin-arm64, locale en-TH)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.96.2)
[✓] Connected device (5 available)
[✓] Network resources

• No issues found!

@Kendru98 Kendru98 added the bug Something isn't working label Jan 7, 2025
@EvgenSilkov
Copy link

EvgenSilkov commented Jan 17, 2025

It hurts especially on Android when some fields have autofocus: true
First keyboard pops open and you have to close it with native.back() (reported in this issue)
then finders can't find the field so I have to use native.enterTextByIndex()

UPD:
downgraded to 3.12.0, works for me
pubspec.yaml:
patrol: 3.12.0
patrol_finders: 2.1.2

@Noxiver
Copy link

Noxiver commented Jan 29, 2025

@EvgenSilkov Hello! How did you solve this error after downgrading?

non-constant super constructor.
          const PatrolIntegrationTester({
                ^
        Target kernel_snapshot_program failed: Exception

@GChanathip
Copy link
Contributor Author

@EvgenSilkov Hello! How did you solve this error after downgrading?

non-constant super constructor.
          const PatrolIntegrationTester({
                ^
        Target kernel_snapshot_program failed: Exception

flutter clean and make sure you use

patrol: 3.12.0
patrol_finders: 2.1.2

not

patrol: ^3.12.0
patrol_finders: ^2.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants