appium / WebDriverAgent

A WebDriver server for iOS and tvOS
Other
1.18k stars 368 forks source link

fix: respect defaultActiveApplication in activeApplication selection #862

Closed KazuCocoa closed 5 months ago

KazuCocoa commented 5 months ago

I wondered if we could follow defaultActiveApplication first if it was not auto, which means the session explicitly wants to interact with the defaultActiveApplication first.

Then, driver.settings.update({defaultActiveApplication: 'com.apple.springboard'}) would help to interact with springboard elements in a session like keyboard as well. It is easy to move to the default behavior with driver.settings.update({defaultActiveApplication: 'auto'})

Maybe.. current implementation no longer work with defaultActiveApplication unless a session does not include bundleId/app

github-actions[bot] commented 5 months ago

:tada: This PR is included in version 7.1.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: