-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: introduce a wildcard usage for additionalWebviewBundleIds to get webview contexts of other apps #346
Conversation
Or adding |
Thank you for your comment! Will try adding |
lib/utils.js
Outdated
@@ -164,7 +184,6 @@ function getPossibleDebuggerAppKeys (bundleIds, appDict) { | |||
WEB_CONTENT_PROCESS_BUNDLE_ID, | |||
SAFARI_VIEW_PROCESS_BUNDLE_ID, | |||
SAFARI_VIEW_BUNDLE_ID, | |||
WILDCARD_BUNDLE_ID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you keep this line? It seems like Safari has *
case as #179 , not sure all supported iOS versions though.
So only when a user specifies *
explicitly as the capabilities, the new behavior occurs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, addressed as d92627f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm overall. (waiting for the ci)
@@ -57,6 +59,64 @@ describe('utils', function () { | |||
expect(getDebuggerAppKey('io.appium.bundle', {})).to.not.exist; | |||
}); | |||
}); | |||
describe('getPossibleDebuggerAppKeys', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Confirmed the behaviour as https://gist.github.com/mwakizaka/fa993e9589db3ce0271538e258e9d719 |
there seems to be a test failure in https://github.com/appium/appium-remote-debugger/actions/runs/6902034726/job/18778125000?pr=346 Seems like an issue to me |
A retry fixed that. Maybe just flaky? |
## [10.2.0](v10.1.7...v10.2.0) (2023-11-17) ### Features * introduce a wildcard usage for additionalWebviewBundleIds to get webview contexts of other apps ([#346](#346)) ([72ee224](72ee224))
🎉 This PR is included in version 10.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
mobile: launchApp
script.- We don't like to useadditionalWebViewBundleIds
capability for our case because it's troublesome to get the bundle id of the app before establishing an appium session.- Therefore, I'd like to add a boolean capability named likeincludeAllAppsInWebviews
.additionalWebviewBundleIds
capability.searchForApp
returns too manyAppPages
- If this PR is no problem, I'd like to send a PR to appium-xcuitest-driver as well to addincludeAllAppsInWebviews
capability.