Re: [Chrome DevTools] How to find the id of a page?

258 views
Skip to first unread message

John J Barton

unread,
Jun 26, 2012, 6:30:52 PM6/26/12
to Bhanu Chandra Vattikonda, google-chrome-...@googlegroups.com


On Tue, Jun 26, 2012 at 3:16 PM, Bhanu Chandra Vattikonda <vbh...@gmail.com> wrote:
Hi,

I am looking to write a simple Python based remote debugging app which seems to be working when the websocket URLs are of the format: "ws://localhost:9222/devtools/page/2". Then I get the 'id' required for almost any communication from the last '2'.

But, when I started testing the code on a different machine, the websocket URLs are showing up in a different format: 'ws://localhost:9222/devtools/page/2_1'. Now '2_1' cannot be an id. So, I am not able to send any commands to the page. I looked around the documentation to see if the 'id' itself is described somewhere, but unfortunately I could not find anything.

Could someone please help me here?

I think you need to open http://localhost:9222 and analyze the content or hi-jack it's url for your own purposes.

jjb
 

Thanks,
Bhanu

Reply all
Reply to author
Forward
0 new messages