Skip to content

Commit 0619bad

Browse files
committed
Merge pull request #140 from marco-c/no_profile_path
Create profile directory only for Chrome
2 parents 73ceb2f + a8f05f0 commit 0619bad

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/testSelenium.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ suite('selenium', function() {
5858
.then(function(newServer) {
5959
server = newServer;
6060

61-
var profilePath = temp.mkdirSync('marco');
62-
63-
var profile = new firefox.Profile(profilePath);
61+
var profile = new firefox.Profile();
6462
profile.setPreference('security.turn_off_all_security_so_that_viruses_can_take_over_this_computer', true);
6563
profile.setPreference('extensions.checkCompatibility.nightly', false);
6664
// Only allow installation of third-party addons from the user's profile dir (needed to block the third-party
@@ -76,7 +74,7 @@ suite('selenium', function() {
7674
var chromeOptions = new chrome.Options()
7775
.setChromeBinaryPath(chromeBinaryPath)
7876
.addArguments('--no-sandbox')
79-
.addArguments('user-data-dir=' + profilePath);
77+
.addArguments('user-data-dir=' + temp.mkdirSync('marco'));
8078

8179
var builder = new webdriver.Builder()
8280
.forBrowser('firefox')

0 commit comments

Comments
 (0)