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 @@ -54,9 +54,7 @@ suite('selenium', function() {
54
54
. then ( function ( newServer ) {
55
55
server = newServer ;
56
56
57
- var profilePath = temp . mkdirSync ( 'marco' ) ;
58
-
59
- var profile = new firefox . Profile ( profilePath ) ;
57
+ var profile = new firefox . Profile ( ) ;
60
58
profile . setPreference ( 'security.turn_off_all_security_so_that_viruses_can_take_over_this_computer' , true ) ;
61
59
profile . setPreference ( 'extensions.checkCompatibility.nightly' , false ) ;
62
60
// Only allow installation of third-party addons from the user's profile dir (needed to block the third-party
@@ -72,7 +70,7 @@ suite('selenium', function() {
72
70
var chromeOptions = new chrome . Options ( )
73
71
. setChromeBinaryPath ( chromeBinaryPath )
74
72
. addArguments ( '--no-sandbox' )
75
- . addArguments ( 'user-data-dir=' + profilePath ) ;
73
+ . addArguments ( 'user-data-dir=' + temp . mkdirSync ( 'marco' ) ) ;
76
74
77
75
var builder = new webdriver . Builder ( )
78
76
. forBrowser ( 'firefox' )
You can’t perform that action at this time.
0 commit comments