Skip to content
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: add additionalWebviewBundleIds capability #1117

Merged
merged 2 commits into from
Dec 9, 2019

Conversation

imurchie
Copy link
Contributor

@imurchie imurchie commented Dec 5, 2019

Pass additional webview bundle identifiers along to the remote debugger.

@@ -192,6 +192,9 @@ let desiredCapConstraints = _.defaults({
includeSafariInWebviews: {
isBoolean: true
},
additionalWebviewBundleIds: {
isArray: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking about making it a comma separated string instead. I see people sometimes having problems poviding arrays to caps, especially in Java

@@ -70,6 +70,7 @@ extensions.getNewRemoteDebugger = async function getNewRemoteDebugger () {
}
return createRemoteDebugger({
bundleId: this.opts.bundleId,
additionalBundleIds: this.opts.additionalWebviewBundleIds,
Copy link
Contributor

@mykola-mokhnach mykola-mokhnach Dec 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.opts.additionalWebviewBundleIds || [] ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is done on the remote debugger side.

@imurchie imurchie force-pushed the isaac-additional-webview-bundleids branch from e969516 to 5950d23 Compare December 8, 2019 00:53
@@ -192,6 +192,10 @@ let desiredCapConstraints = _.defaults({
includeSafariInWebviews: {
isBoolean: true
},
additionalWebviewBundleIds: {
// recognize the capability
// but validate in driver#validateDesiredCaps
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

@imurchie imurchie merged commit da5e629 into master Dec 9, 2019
@imurchie imurchie deleted the isaac-additional-webview-bundleids branch December 9, 2019 12:55
khanayan123 pushed a commit to khanayan123/appium-xcuitest-driver that referenced this pull request May 10, 2021
* feat: add additionalWebviewBundleIds capability

* fix: allow JSON array for cap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants