-
Notifications
You must be signed in to change notification settings - Fork 158
Can't reopen the app after run the app in the background in the BrowserStack using Patrol pressHome function #2525
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
Comments
Hi, on iOS automation is blocked after moving app to background (probably because of security reasons). await $.pumpWidget(yourApp);
await $.native.pressHome();
await $.native.openApp();
await Future<void>.delayed(const Duration(seconds: 5));
await $(someWidget).waitUntilVisible(); |
Hi @fylyppo , does this mean we can't simulate run app in the background on iOS in BrowserStack? |
@AntoniKwok it's possible to move app to background for IIRC max 2 seconds, within this time you need to move app again to foreground so as to be not blocked by BS |
@AntoniKwok , take a look at this case: https://github.com/leancodepl/patrol/issues/2382 |
@valtbarbos , I can't open the issue |
I just use this methods await $.native.pressHome(); but it's not working on iOS |
@AntoniKwok is there any exception thrown or patrol says that steps are completed but nothing is visible on the screen? |
FYI @fylyppo IDK how it goes in BS (tests running on Android emulator?) - but in my case I faced "test stuck" on Android emulator during native actions (pressHome, openApp) as on our GitLab runner (own MacMini) and locally (I'm using Mac). Seems like the root cause is the latest emulator version Android Emulator (35.3.12) Stable. So I switched back to Android Emulator (35.3.11) Stable - no such problems so far. |
Hi Patrol Team, when I use pressHome() function from native interaction, the test will be stopped once I reopen the test (the previous will be stopped and it will rerun the same test case again)
The text was updated successfully, but these errors were encountered: