Feature Request: Return pageDict on contexts request
See original GitHub issueThe problem
I am working on an app that renders content in multiple web views even on the same native view (a list with ads) and I am having trouble interacting with each one of them because I cannot find a way to select a specific web view context.
I see that Appium retrieves more information about the contexts than the information that sends back in the request. Currently it only sends back a list of strings with the available context and a suffix of the PID example:
['NATIVE_APP', 'WEBVIEW_27218.1', 'WEBVIEW_27215.6', 'WEBVIEW_27551.1', 'WEBVIEW_27224.1']
But in the appium server I see that more information is retrieved for example:
[debug] [RemoteDebugger] Application: 'PID:27551' [debug] [RemoteDebugger] id: "PID:27551" [debug] [RemoteDebugger] isProxy: true [debug] [RemoteDebugger] name: "com.apple.WebKit.WebContent" [debug] [RemoteDebugger] bundleId: "com.apple.WebKit.WebContent" [debug] [RemoteDebugger] hostId: "PID:27530" [debug] [RemoteDebugger] isActive: 1 [debug] [RemoteDebugger] isAutomationEnabled: false [debug] [RemoteDebugger] pageDict: [{"id":1,"title":"Shop Your Way - Registration | Shop Your Way: Online Shopping & Earn Points on Tools, Appliances, Electronics & more","url":"https://www.shopyourway.com/secured/m/sign-in-or-register?dinghy=true&returnUrl=%2fsecured%2fmp%2fconnect%2fnative%3fappid%3d16250%26target%3dhttp%253A%252F%252Fwww.winitapp.com%252Fusers%252Flogin%252F%26forceToken%3dtrue","isKey":false}]
It would be really useful to retrieve the pageDict because it contains the URL of the web view and I could use it to differentiate it from the other web views.
Here is the full output of the appium log with several contexts: https://gist.github.com/eduardoreynoso/6ec2cecea5ec0441ab2db9104c6b8cea
I tried to search for the code that returns this but I cannot find it. If someone points me in the right direction I could potentially add this feature myself. Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
I agree. I started on this a while back but have not finished. I’ll add to the queue.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.