Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute test scripts in incognito mode #77

Open
Sjain01 opened this issue Aug 26, 2018 · 0 comments
Open

Execute test scripts in incognito mode #77

Sjain01 opened this issue Aug 26, 2018 · 0 comments

Comments

@Sjain01
Copy link

Sjain01 commented Aug 26, 2018

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

Although I had already asked this question via #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');

/**

  • Creates a Selenium WebDriver using Chrome as the browser

  • @returns {ThenableWebDriver} selenium web driver
    */
    module.exports = function() {

    var driver = new selenium.Builder().withCapabilities({
    browserName: 'chrome',
    javascriptEnabled: true,
    acceptSslCerts: true,
    chromeOptions: {
    args: ['start-maximized', 'disable-extensions','incognito']
    },
    path: chromedriver.path
    }).build();

    driver.manage().window().maximize();

    return driver;
    };`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant