Skip to content

[🐛 Bug]: switchContext should also allow custom retry timeout and identifier to switch to #14292

@wswebcreation

Description

@wswebcreation

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

latest

Node.js Version

latest

Mode

WDIO Testrunner

Which capabilities are you using?

What happened?

There are 2 enhancements for switchContext

  1. there are cases where you know that a page inside the Android webview gets loaded, but it takes some time to load. We need to provide the option to wait for it for X amount of time
  2. by default the switchContext now seaches for a title/url in the "active" app, see this. We should also allow the user to provide an identifier to search. This will prevent overlays not to be found which are not recognised as the "active" app for this method

What is your expected behavior?

No response

How to reproduce the bug.

Relevant log output

-

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions