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.

Feature Request: Return pageDict on contexts request

See original GitHub issue

The 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
imurchiecommented, May 25, 2018

I agree. I started on this a while back but have not finished. I’ll add to the queue.

0reactions
lock[bot]commented, Jun 11, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature request response email templates - LiveAgent
While there isn't a perfect way to reply to all customer feature requests as it largely depends on the context, here are 7...
Read more >
Feature Requests: What are they and how to manage them
Feature requests are a form of product feedback you may frequently encounter as a SaaS product manager. They typically come in the form...
Read more >
10 Tips for Responding Graciously to Customer Feature ...
Happy customers and happy agents – a win-win situation for us! There isn't a perfect way to reply to all feature requests as...
Read more >
ViewDOM documentation
return html("<h1>Local Site Title</h1>"). What is the “context”? It's a special aspect of a registry. In this case, a per-request child registry:.
Read more >
The right way to respond to feature requests - Inside Intercom
It's always important to be honest with your customers, so long as you share the context on where this decision is coming from....
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