patrol icon indicating copy to clipboard operation
patrol copied to clipboard

Patrol execution getting stuck indefinitely

Open Tawheedwahid opened this issue 10 months ago • 2 comments

Patrol execution on android is getting stuck indefinitely once in app webview is opened. It's not throwing any errors but just simply getting stuck and not performing the next steps. Cc: @bartekpacia

Patrol version: 3.14.0 Emulator device: Google pixel 8a

Tawheedwahid avatar Feb 25 '25 13:02 Tawheedwahid

Hi @Tawheedwahid Can you try to provide some more details? Patrol logs, adb logs would be useful. I am using Patrol to test webview without issues so the problem must be something more specific.

zoskar avatar Feb 28 '25 10:02 zoskar

This is my test.

patrolTest( 'Validate Add Smart Car Flow', tags: ['Sanity', 'Addsmartcar'], ($) async { final app = await buildTestApp(); await $.pumpWidget(splash(app)); // Fresh app instance await $.pump(); expect($(SplashPage), findsOneWidget); await login($); // User logs in await addVehicle($, '2024', 'Ford', 'Escape', 'Active AWD'); await addSmartVehicle($); }, );

Future addSmartVehicle(PatrolIntegrationTester $) async { expect($('Connect Your Vehicle'), findsOneWidget); await $('Connect Now').tap(); await $.pump(); await $.native.tap(Selector(text: 'Continue')); await $.pumpAndSettle(); }

And the logs are not getting printed after connect now is tapped and webview is opened.

Logs: ✅ 28. tap widgets with text "Return to Garage". ⏳ 29. tap widgets with text "Connect Now". ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────── │ [info] | 17:54:49 69ms | bloc event: MyGarageBloc: MyGarageSmartCarBannerPressed() ✅ 29. tap widgets with text "Connect Now".

Tawheedwahid avatar Mar 05 '25 12:03 Tawheedwahid

@Tawheedwahid pumps do not work on native side as I remember. Try to remove them when you're interacting with webview if you want to wait for something on native side, use future.delayed

Kendru98 avatar Jul 10 '25 21:07 Kendru98

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Jul 17 '25 22:07 github-actions[bot]

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.

github-actions[bot] avatar Jul 24 '25 22:07 github-actions[bot]