appium / appium/appium-flutter-driver

Activate app not working properly

Open
#810 12 comments 0 reactions 0 assignees View on GitHub

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:

  1. Context switch to 'NATIVE_APP': await driver.switchContext("NATIVE_APP")
  2. Send the app to background by pressing the home button driver.pressKeyCode(3) or use the background api await driver.execute('mobile: backgroundApp') and this works.
  3. 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.
  4. Eventually it just fails.

Can you help?
Best Regards,
Moti.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.