Closed Bug 1806833 Opened 1 year ago Closed 1 year ago

Demonstrate HAR file generation via WebDriver BiDi protocol

Categories

(Remote Protocol :: WebDriver BiDi, task, P1)

task
Points:
8

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: whimboo, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

(Whiteboard: [webdriver:m6])

To wrap-up our work for Milestone 5 we will have to demonstrate how HAR file generation via WebDriver BiDi will look like. We should create a test or script that can be run (maybe via the WebDriver BiDi Python client), that exports a HAR file for a navigation, and which then can be read by any HAR client.

Before we can start the necessary network events need to be implemented.

Also if possible we should make sure that we can show the cross-browser support. But this would require at least chromedriver to support all the necessary events as well.

Duplicate of this bug: 1790380
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

To demonstrate HAR support with BiDi we worked both on our bidi client prototype as well as on a small selenium based solution.

network tab on bidi-webconsole-prototype

The client available at https://github.com/firefox-devtools/bidi-webconsole-prototype now provides a Network tab which will show all requests matching the currently selected context. You can click on the "Export all as HAR" button on the bottom right in order to export the list of requests to a HAR file.

selenium example

We ported the HAR generation logic used for the bidi-webconsole-prototype to selenium, https://github.com/juliandescottes/selenium/commit/9aa9c1430d . Overall that's just a simple translation, using selenium APIs in order to subscribe to the BiDi events, but the rest of the logic is identical to what we have in the bidi-webconsole-prototype (which means anything we fix in one should be easy to port to the other one).

Discussed with the team, let's close this based on the work mentioned in the previous comment. Some follow up work will now take place in Bug 1744483 to check the selenium integration.

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
See Also: → 1744483
You need to log in before you can comment on or make changes to this bug.