Bug 166679 (gtk-webdriver) - [GTK][META] WebDriver implementation
Summary: [GTK][META] WebDriver implementation
Status: NEW
Alias: gtk-webdriver
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on: 174612 184967 226134 233391 166680 166682 171428 172060 174613 174614 174615 174616 174617 174618 174672 175183 175184 217174 217177 217206 217217 217222 217223 217819 217950 217951 218279 218382 218383 219024
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-04 04:04 PST by Carlos Garcia Campos
Modified: 2021-11-19 18:02 PST (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2017-01-04 04:04:09 PST
This is a meta bug to track all the changes needed to add a WebDriver implementation for WebKitGTK+. To reuse as much as possible what WebKit already implements, we first need to switch our remote web inspector to use ENABLE_REMOTE_INSPECTOR instead of ENABLE_INSPECTOR_SERVER. Then we need to add web driver process and some API for the parts browsers need to implement.
Comment 1 Michael Catanzaro 2017-05-07 19:19:06 PDT
Is this eventually going to obsolete Metrological's WebDriver implementation for WPE (https://github.com/Metrological/webdriver), or are we only implementing this for GTK and not WPE for now?
Comment 2 Carlos Garcia Campos 2017-05-07 23:37:18 PDT
The WebDriver implementation is 95% cross-platform. For the GTK+ port we have a few bits of libsoup for the HTTP server implementation and GTK part (GTK as in GTK port, not that GTK+ is used at all) just to launch the browser and handle some specific capabilities like enabling/disabling overlay scrollbars in tests. So, only that part would be needed in WPE in the WebDriver implementation itself. However, it uses the remote inspector mechanism for the communication with the browser, so WPE would need to switch to use remote inspector, but they prefer to stay with the legacy web sockets approach. Maybe it's possible to use both at the same time, and use the remote inspector only for automation.
Comment 3 Olivier Blin 2017-05-09 01:21:59 PDT
We are also working on another implementation of WebDriver in WPE, using ENABLE_INSPECTOR_SERVER and WebAutomation APIs.

This is based on Metrological's WebDriver, reworked to remove an extra IPC layer and use WebAutomation.

Remote inspector is not suitable for most WPE end-users and set-top box web developers, since it requires a very similar WebKit browser to run the inspector frontend.

Would it really be possible to enable both remote/server inspectors at the same time?