@wdio/nightwatch-devtools 1.8.1 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -546,23 +546,16 @@ async function openDevtoolsBrowser(ctx, url) {
546
546
  }
547
547
  ctx.devtoolsBrowser = await remote({
548
548
  logLevel: "info",
549
- automationProtocol: "devtools",
550
549
  capabilities: {
551
550
  browserName: "chrome",
552
551
  "goog:chromeOptions": {
552
+ excludeSwitches: ["enable-automation"],
553
553
  args: [
554
554
  "--window-size=1600,1200",
555
555
  `--user-data-dir=${ctx.userDataDir}`,
556
556
  "--no-first-run",
557
557
  "--no-default-browser-check"
558
558
  ]
559
- },
560
- // Dashboard uses the Puppeteer-based 'devtools' protocol; drop the
561
- // "controlled by automated test software" infobar by ignoring
562
- // Puppeteer's --enable-automation default. (Runtime-valid capability
563
- // not present in the type.)
564
- "wdio:devtoolsOptions": {
565
- ignoreDefaultArgs: ["--enable-automation"]
566
559
  }
567
560
  }
568
561
  });
@@ -601,7 +594,7 @@ async function waitForDevtoolsBrowserClose(ctx) {
601
594
  }
602
595
  ;
603
596
  logger2.setLevel(
604
- "devtools",
597
+ "webdriver",
605
598
  "warn"
606
599
  );
607
600
  let exitBySignal = false;
@@ -629,7 +622,7 @@ async function waitForDevtoolsBrowserClose(ctx) {
629
622
  process.removeListener("SIGINT", signalHandler);
630
623
  process.removeListener("SIGTERM", signalHandler);
631
624
  logger2.setLevel(
632
- "devtools",
625
+ "webdriver",
633
626
  "info"
634
627
  );
635
628
  try {