appium / appium/appium-flutter-driver
Activate app not working properly
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 539
- Forks
- 195
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 4
Description
Hi, I am trying to minimize and reopen the app but keeps getting
[FlutterDriver@8fec] Encountered internal error running command: Error: No matched log found with 3000 ms interval up to 10 times.
My flow is:
- Context switch to 'NATIVE_APP':
await driver.switchContext("NATIVE_APP") - Send the app to background by pressing the home button
driver.pressKeyCode(3)or use the background apiawait driver.execute('mobile: backgroundApp')and this works. - Wait for 3000 msec and then trying to activate the app
await driver.execute('mobile: activateApp', {'appId': currentpackage}), the app do returns to foreground but it then waits for some log and do 10 retrying. - Eventually it just fails.
Can you help?
Best Regards,
Moti.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the flow using the mentioned mobile: backgroundApp and mobile: activateApp commands, including the NATIVE_APP context switch. Trace why activation waits for a matching log and retries ten times; done means the app can be backgrounded and reactivated without the reported internal error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flutter, typescript
- Domain
- mobile, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100