question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't get 'WEBAPP' context

See original GitHub issue

The problem

I open the WkWebView page within app, and always got ‘NATIVE_APP’ result of all context by appium client;

Environment

  • Appium version : 1.20.0
  • Desktop OS/version used to run Appium:
  • Node.js version (unless using Appium.app|exe):12.8.1
  • Npm or Yarn package manager: npm 6.14.8
  • Mobile platform/version under test: iOS
  • Real device or emulator/simulator: real device , iPhone 7 Plus, iOS 14.2
  • Appium CLI or Appium.app|exe:

Details

this page contains a XCUIElementTypeWebView Source

<XCUIElementTypeWindow>
<XCUIElementTypeOther>
<XCUIElementTypeOther>
<XCUIElementTypeOther>
<XCUIElementTypeOther>
<XCUIElementTypeOther>
<XCUIElementTypeOther>
<XCUIElementTypeOther>
<XCUIElementTypeOther>
<XCUIElementTypeOther>
<XCUIElementTypeOther>
<XCUIElementTypeWebView>
<XCUIElementTypeWebView>
<XCUIElementTypeOther>
<XCUIElementTypeOther>
<XCUIElementTypeWebView>
<XCUIElementTypeOther name="垂直滚动条, 49页">
<XCUIElementTypeTabBar name="标签栏">
<XCUIElementTypeButton name="首页">
<XCUIElementTypeButton name="商场">
<XCUIElementTypeButton name="导购员">
<XCUIElementTypeButton name="购物车">
<XCUIElementTypeOther>
<XCUIElementTypeButton name="我的">
<XCUIElementTypeWindow>

Link to Appium logs

[HTTP] --> POST /wd/hub/session/b5f2e748-ecf8-4ff9-90d5-828cf569d093/execute
[HTTP] {"script":"mobile:getContexts","args":[]}
[MJSONWP (b5f2e748)] Calling AppiumDriver.execute() with args: ["mobile:getContexts",[],"b5f2e748-ecf8-4ff9-90d5-828cf569d093"]
[XCUITest] Executing command 'execute'
[XCUITest] Getting list of available contexts
[iOS] Retrieving contexts and views
[XCUITest] Selecting by url: false 
[RemoteDebugger] Sending connection key request
[RemoteDebugger] Sending '_rpc_reportIdentifier:' message (id: 226): 'setConnectionKey'
[RemoteDebugger] Sending to Web Inspector took 3ms
[RemoteDebugger] Selecting application
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Current applications available:
[RemoteDebugger]     Application: "PID:3049"
[RemoteDebugger]         id: "PID:3049"
[RemoteDebugger]         isProxy: false
[RemoteDebugger]         name: "Safari"
[RemoteDebugger]         bundleId: "com.apple.mobilesafari"
[RemoteDebugger]         hostId: undefined
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: true
[RemoteDebugger]         pageArray:
[RemoteDebugger]           - id: 1
[RemoteDebugger]             title: "百度一下"
[RemoteDebugger]             url: "https://www.baidu.com/"
[RemoteDebugger]             isKey: false
[RemoteDebugger]     Application: "PID:3051"
[RemoteDebugger]         id: "PID:3051"
[RemoteDebugger]         isProxy: true
[RemoteDebugger]         name: "com.apple.WebKit.WebContent"
[RemoteDebugger]         bundleId: "process-com.apple.WebKit.WebContent"
[RemoteDebugger]         hostId: "PID:3049"
[RemoteDebugger]         isActive: false
[RemoteDebugger]         isAutomationEnabled: "Unknown"
[RemoteDebugger]         pageArray: "Waiting for data"
[RemoteDebugger] Checking for bundle identifiers: com.apple.WebKit.WebContent, process-com.apple.WebKit.WebContent, process-SafariViewService, com.apple.SafariViewService, *, com.yuntao.miaojie
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-com.apple.WebKit.WebContent'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'process-SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.apple.SafariViewService'
[RemoteDebugger] Found app id key 'PID:3051' for bundle '*'
[RemoteDebugger] Found app id key 'PID:3051' for bundle 'com.yuntao.miaojie'
[RemoteDebugger] Trying out the possible app ids: PID:3051 (try #1 of 20)
[RemoteDebugger] Skipping app 'PID:3051' because it is not active
[RemoteDebugger] Could not connect to a valid app after 20 tries.
[XCUITest] No available web pages: Could not connect to a valid app after 20 tries.
[XCUITest] No web frames found.
[XCUITest] No webviews found in 9634ms
[MJSONWP (b5f2e748)] Responding to client with driver.execute() result: [{"id":"NATIVE_APP"}]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Jan 14, 2021
0reactions
emptywalkercommented, Jan 18, 2021

Yea, it works for me! I’m clearly the rules that how to use webInspector in mobile app.

web content in developer provisioned apps:

  • SFSafariViewController
  • WKWebView
  • UIWebView
  • JSContext

from apple documents

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get the default WebApplicationContext? - Stack Overflow
Easiest solution is to use getWebApplicationContext() of WebApplicationContextUtils : Find the root WebApplicationContext for this web ...
Read more >
How do I get web application context path? - Kode Java
The context path always comes first in a request URI. The path starts with a “/” character but does not end with a...
Read more >
FAIL - Application at context path /webapp could not be started
Hi, I have the code under c:\my_name_ccview\source\code\MyWebApplication. I use Netbeans 5.5.1 and bundled tomcat 5.5.17.
Read more >
WebAppContext (Jetty :: Project 9.4.46.v20220331 API) - Eclipse
The WebAppContext handler is an extension of ContextHandler that coordinates the construction ... Get an exception that caused the webapp to be unavailable....
Read more >
Understanding Tomcat context containers - A simple guide
In Tomcat, the Context Container represents a single web application running within a given instance of Tomcat. A web site is made up...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found