File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,7 @@ suite('selenium', function() {
58
58
. then ( function ( newServer ) {
59
59
server = newServer ;
60
60
61
- var profilePath = temp . mkdirSync ( 'marco' ) ;
62
-
63
- var profile = new firefox . Profile ( profilePath ) ;
61
+ var profile = new firefox . Profile ( ) ;
64
62
profile . setPreference ( 'security.turn_off_all_security_so_that_viruses_can_take_over_this_computer' , true ) ;
65
63
profile . setPreference ( 'extensions.checkCompatibility.nightly' , false ) ;
66
64
// 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() {
76
74
var chromeOptions = new chrome . Options ( )
77
75
. setChromeBinaryPath ( chromeBinaryPath )
78
76
. addArguments ( '--no-sandbox' )
79
- . addArguments ( 'user-data-dir=' + profilePath ) ;
77
+ . addArguments ( 'user-data-dir=' + temp . mkdirSync ( 'marco' ) ) ;
80
78
81
79
var builder = new webdriver . Builder ( )
82
80
. forBrowser ( 'firefox' )
You can’t perform that action at this time.
0 commit comments