Get inner html of div using Chrome Remote Debugging Protocol

672 views
Skip to first unread message

Chapunux

unread,
Jun 3, 2014, 8:52:06 AM6/3/14
to google-chrome-...@googlegroups.com
I am experiencing Chrome Remote Debugging Protocol. I found this blog post about how to use this protocol using wen sockets. I was able to navigate to web page correctly. Now I want to get a inner html of div using its id in that page. I tried with many json commands, but I couldn't able to make it, Can some one help me build json query to get that property?

I used this json to navigate var json = @"{""method"":""Page.navigate"",""params"":{""url"":""http://www.seznam.cz""},""id"":1}"; . 

Vsevolod Vlasov

unread,
Jun 4, 2014, 6:28:09 AM6/4/14
to Google Chrome Developer Tools

You could either use DOM domain querySelector method or Runtime domain evaluate method.

On Jun 3, 2014 4:52 PM, "Chapunux" <cbjpat...@gmail.com> wrote:
I am experiencing Chrome Remote Debugging Protocol. I found this blog post about how to use this protocol using wen sockets. I was able to navigate to web page correctly. Now I want to get a inner html of div using its id in that page. I tried with many json commands, but I couldn't able to make it, Can some one help me build json query to get that property?

I used this json to navigate var json = @"{""method"":""Page.navigate"",""params"":{""url"":""http://www.seznam.cz""},""id"":1}"; . 

--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/a813743e-b981-463c-85c4-55c306dd8bfc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chathuranga Pathirana

unread,
Jun 4, 2014, 11:32:32 PM6/4/14
to google-chrome-...@googlegroups.com
thanks, I got it using runtime evaluate.




--
You received this message because you are subscribed to a topic in the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-chrome-developer-tools/LaiGXfT80w8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/CAB6O%2BxYgUgC34w1%3DiXSfkMTfbzFcNQ-vpyhc-B92%2BTTn2Ef4rg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages