From 977378e1c7fa3dd7c574e212e717b0b04bdc9456 Mon Sep 17 00:00:00 2001 From: Priyansh Garg Date: Thu, 9 May 2024 00:04:14 +0530 Subject: [PATCH] Update chrome and edge default desiredCapabilities. --- src/config/main.ejs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/config/main.ejs b/src/config/main.ejs index 95f9844..562a593 100644 --- a/src/config/main.ejs +++ b/src/config/main.ejs @@ -144,14 +144,11 @@ module.exports = { browserName: 'chrome', 'goog:chromeOptions': { // More info on Chromedriver: https://sites.google.com/a/chromium.org/chromedriver/ - // - // w3c:false tells Chromedriver to run using the legacy JSONWire protocol (not required in Chrome 78) - w3c: true, args: [ //'--no-sandbox', //'--ignore-certificate-errors', //'--allow-insecure-localhost', - //'--headless' + //'--headless=new' ] } }, @@ -169,18 +166,15 @@ module.exports = { desiredCapabilities: { browserName: 'MicrosoftEdge', 'ms:edgeOptions': { - w3c: true, // More info on EdgeDriver: https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/capabilities-edge-options args: [ - //'--headless' + //'--headless=new' ] } }, webdriver: { start_process: true, - // Follow https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/?tabs=c-sharp#download-microsoft-edge-webdriver - // to download the Edge WebDriver and set the location of extracted `msedgedriver` below: server_path: '', cli_args: [ // --verbose