Chrome/Android Webview DevTools Remote Debugging Protocol 1.1 Python Wrapper

424 views
Skip to first unread message

Al Johri

unread,
Jun 5, 2014, 6:40:17 PM6/5/14
to selenium-...@googlegroups.com, Vaibhav Rastogi
Hi everyone,

I was trying to utilize the Chrome DevTools API to manipulate an Android Webview application in Android 4.4 (KitKat). I needed a method that could attach to an existing webview and thus I couldn't use the Selenium Android Driver.

This is a link the API that I used: https://developer.chrome.com/devtools/docs/protocol/1.1/index

I wrote the basic framework for a python wrapper to this API here: https://github.com/AlJohri/chromedevtools

I was wondering if this has any potential for integration with selenium or if any developers were interested in contributing to the repository.

Thanks,

Al Johri

Luke Inman-Semerau

unread,
Jun 6, 2014, 12:42:02 PM6/6/14
to selenium-...@googlegroups.com, Vaibhav Rastogi
That's what chromedriver is for. It works against Android too, not
just Chrome.apk, but also WebViews in apps that enable the chrome
webview in KitKat.

https://sites.google.com/a/chromium.org/chromedriver/getting-started/getting-started---android
> --
> You received this message because you are subscribed to the Google Groups
> "Selenium Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to selenium-develo...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/selenium-developers/6fc50aaf-1681-4d70-8d72-d77aaa884874%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Atul Johri

unread,
Jun 6, 2014, 5:37:16 PM6/6/14
to selenium-...@googlegroups.com
Thanks! I actually found out about ChromeDriver when I mentioned my library on the irc channel.

As far as I know the ChromeDriver relies on synchronous JSON commands over HTTP while the DevTools protocols uses websockets and has some specific features like highlighting portions of the screen and notifications.

If anyone know some of the key differences between ChromeDriver and the Remote Debugging Protocol (https://developer.chrome.com/devtools/docs/protocol/1.1/index) at the implementation level I'd love to hear.

- Al


Reply all
Reply to author
Forward
0 new messages