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
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 withdriver.settings.update({defaultActiveApplication: 'auto'})
Maybe.. current implementation no longer work with defaultActiveApplication unless a session does not include bundleId/app