Skip to content

Instantly share code, notes, and snippets.

@wazzeps
Created October 31, 2023 23:05
Show Gist options
  • Save wazzeps/b37454f9f7a85859c23398726e5be4c5 to your computer and use it in GitHub Desktop.
Save wazzeps/b37454f9f7a85859c23398726e5be4c5 to your computer and use it in GitHub Desktop.
Chrome web context
[HTTP] --> GET /session/65bb2a3d-a2ca-4af7-b9d5-78320cbea965/contexts
[HTTP] {}
[debug] [AndroidUiautomator2Driver@8284 (65bb2a3d)] Calling AppiumDriver.getContexts() with args: ["65bb2a3d-a2ca-4af7-b9d5-78320cbea965"]
[debug] [AppiumDriver@0096] Clearing new command timeout pre-emptively since plugin(s) will handle this command
[AppiumDriver@0096] Plugins which can handle cmd 'getContexts': images
[AppiumDriver@0096] Plugin images is now handling cmd 'getContexts'
[AppiumDriver@0096] Executing default handling behavior for command 'getContexts'
[debug] [AndroidDriver] Getting a list of available webviews
[debug] [ADB] Running '/home/x/.repo/repository/com.google.androidsdk/androidsdk-26.1.1-r33-linux/platform-tools/adb -P 5037 -s emulator-5554 shell cat /proc/net/unix'
[debug] [AndroidDriver] Parsed 2 active devtools sockets: ["@webview_devtools_remote_7621","@chrome_devtools_remote"]
[debug] [AndroidDriver] Collecting CDP data of 2 webviews
[debug] [AndroidDriver] Forwarding remote port webview_devtools_remote_7621 to a local port in range 10900..11000
[debug] [AndroidDriver] You could use the 'webviewDevtoolsPort' capability to customize the starting port number
[debug] [AndroidDriver] Forwarding remote port chrome_devtools_remote to a local port in range 10900..11000
[debug] [AndroidDriver] You could use the 'webviewDevtoolsPort' capability to customize the starting port number
[debug] [ADB] Running '/home/x/.repo/repository/com.google.androidsdk/androidsdk-26.1.1-r33-linux/platform-tools/adb -P 5037 -s emulator-5554 forward tcp:10900 localabstract:webview_devtools_remote_7621'
[debug] [ADB] Removing forwarded port socket connection: 10900
[debug] [ADB] Running '/home/x/.repo/repository/com.google.androidsdk/androidsdk-26.1.1-r33-linux/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp:10900'
[debug] [ADB] Running '/home/x/.repo/repository/com.google.androidsdk/androidsdk-26.1.1-r33-linux/platform-tools/adb -P 5037 -s emulator-5554 forward tcp:10900 localabstract:chrome_devtools_remote'
[debug] [ADB] Removing forwarded port socket connection: 10900
[debug] [ADB] Running '/home/x/.repo/repository/com.google.androidsdk/androidsdk-26.1.1-r33-linux/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp:10900'
[debug] [AndroidDriver] CDP data collection completed
[debug] [AndroidDriver] WEBVIEW_7621 mapped to pid 7621
[debug] [AndroidDriver] Getting process name for webview 'WEBVIEW_7621'
[debug] [ADB] Running '/home/x/.repo/repository/com.google.androidsdk/androidsdk-26.1.1-r33-linux/platform-tools/adb -P 5037 -s emulator-5554 shell ps -A'
[debug] [AndroidDriver] Got process name: 'android.beta'
[AndroidDriver] Skipping the webview 'WEBVIEW_7621' at '@webview_devtools_remote_7621' since it has reported having zero pages
[AndroidDriver] Skipping the webview 'WEBVIEW_chrome' at '@chrome_devtools_remote' since it has reported having zero pages
[debug] [AndroidDriver] Found 0 webviews: []
[debug] [AndroidUiautomator2Driver@8284 (65bb2a3d)] Available contexts: ["NATIVE_APP"]
[debug] [AndroidUiautomator2Driver@8284 (65bb2a3d)] Responding to client with driver.getContexts() result: ["NATIVE_APP"]
[HTTP] <-- GET /session/65bb2a3d-a2ca-4af7-b9d5-78320cbea965/contexts 200 265 ms - 24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment