diff --git a/console/console-log-logged.html b/console/console-log-logged.html
index 99fe1a336aaa58e..de527b2f611938b 100644
--- a/console/console-log-logged.html
+++ b/console/console-log-logged.html
@@ -5,19 +5,20 @@
diff --git a/resources/testdriver.js b/resources/testdriver.js
index 4c2d27c8c030c24..89adc0803d4adeb 100644
--- a/resources/testdriver.js
+++ b/resources/testdriver.js
@@ -44,13 +44,70 @@
return pointerInteractablePaintTree.indexOf(element) !== -1;
}
-
/**
* @namespace {test_driver}
*/
window.test_driver = {
- get event_target() {
- return window.test_driver_internal.event_target;
+ /**
+ * @namespace {bidi} - Represents `WebDriver BiDi `_ protocol.
+ */
+ bidi: {
+ /**
+ * `session `_ module.
+ */
+ session: {
+ /**
+ * Subscribe to event.
+ *
+ * Events will be Matches the behaviour of the `session.subscribe
+ * `_ WebDriver BiDi command.
+ *
+ * @param {String} event - The event to subscribe to.
+ * @param {WindowProxy} context - Browsing context in which
+ * to run the call, or null for the current
+ * browsing context.
+ * @return {Promise}
+ */
+ subscribe: function (event, context = null) {
+ return window.test_driver_bidi_internal.session.subscribe(event, context);
+ }
+ },
+ /**
+ * `log `_ module.
+ */
+ log: {
+ /**
+ * `log.entryAdded `_ event.
+ */
+ entryAdded: {
+ /**
+ * Add an event listener for the `log.entryAdded
+ * `_ event.
+ *
+ * @param callback {function(event): void} - The callback to call when the event is fired.
+ * @returns {function(): void} - A function to call to remove the event listener.
+ */
+ on: function (callback) {
+ return window.test_driver_bidi_internal.log.entryAdded.on(callback);
+ },
+ /**
+ * Get a promise that resolves the next time the `log.entryAdded
+ * `_ event is fired.
+ *
+ * @returns {Promise