-
Notifications
You must be signed in to change notification settings - Fork 156
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
Can't reopen the app after run the app in the background in the BrowserStack using Patrol pressHome function #2525
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 |
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: