Skip to content

Commit b0f1a17

Browse files
committed
chore(demo): enable WebView debugging for Appium
1 parent 3bf693b commit b0f1a17

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

examples/demo/capacitor.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ const config: CapacitorConfig = {
66
webDir: 'dist',
77
ios: {
88
handleApplicationNotifications: false,
9+
// Force WKWebView.isInspectable = true so Appium's XCUITest driver can
10+
// enumerate the WebView context in Release builds on iOS 16.4+. Without
11+
// this, Capacitor's bridge leaves isInspectable=false in Release and
12+
// getContexts() returns only NATIVE_APP, so Appium times out waiting for
13+
// the WebView. Test-only convenience for the demo app.
14+
webContentsDebuggingEnabled: true,
915
},
1016
};
1117

examples/demo_pods/capacitor.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ const config: CapacitorConfig = {
66
webDir: 'dist',
77
ios: {
88
handleApplicationNotifications: false,
9+
// Force WKWebView.isInspectable = true so Appium's XCUITest driver can
10+
// enumerate the WebView context in Release builds on iOS 16.4+. Without
11+
// this, Capacitor's bridge leaves isInspectable=false in Release and
12+
// getContexts() returns only NATIVE_APP, so Appium times out waiting for
13+
// the WebView. Test-only convenience for the demo app.
14+
webContentsDebuggingEnabled: true,
915
},
1016
};
1117

0 commit comments

Comments
 (0)