john-doherty / selenium-cucumber-js

Browser automation framework written in pure JavaScript using official selenium-webdriver and cucumber-js
ISC License
120 stars 89 forks source link

Execute test scripts in incognito mode #77

Open Sjain01 opened 6 years ago

Sjain01 commented 6 years ago

@john-doherty - First of all thank you for this amazing library.

Although I had already asked this question via https://github.com/john-doherty/selenium-cucumber-js/issues/76 since the suggestion in there is not working and I cannot re-open it, I opened a new issue.

As per the suggestion, adding incognito under runtime folder in chromeDriver.js is not working.

` 'use strict';

var chromedriver = require('chromedriver'); var selenium = require('selenium-webdriver');

/**