summaryrefslogtreecommitdiffstats
path: root/remote/cdp/test/browser/browser_interface.js
blob: d2e42362e13eeba0df66f2979774d57b6d1473db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

add_task(async function navigator_webdriver({ client }) {
  const { Runtime } = client;

  const url = toDataURL("default-test-page");
  await loadURL(url);

  await enableRuntime(client);

  const { result } = await Runtime.evaluate({
    expression: "navigator.webdriver",
  });

  is(result.type, "boolean", "The returned type is correct");
  is(result.value, true, "navigator.webdriver is enabled");
});