omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    WebView "Inspect Element"?

    Pythonista
    2
    2
    2058
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jbl
      jbl last edited by

      Hi,

      A newbie with the ui module and kind of python too so thanks in advance.

      I'm wondering if there is any way, in a WebView, to get information back about interactions with a webpage. So specifically, imagine something like an "inspect element" button on a desktop browser. Could you, for example, print to the console the HTML associated with a button you click?

      If that's possible, could someone point me in the right direction as to where to start? In reading docs and the forum, I'm not getting anywhere.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        Although it is a bit finicky and smallish, firebug-lite does work on the ipad, and has an inspect feature. Here is an example of how you could integrate this into pythonista.
        https://gist.github.com/85a26b89b01dfe9a488c4bdc6f6827c6

        If I knew js/css better, I would increase the button sizes a smidge, and make it so you can redisplay the plugin after dismissing it...right now when it closes...it is closed for good.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors