File tree Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,8 @@ artifacts:
27
27
clone_depth : 1
28
28
test_script :
29
29
- dotnet restore
30
- - npm install -g selenium-standalone
31
- - selenium-standalone install
32
- - ps : Start-Process selenium-standalone 'start','-Djna.nosys=true'
30
+ - npm install selenium-standalone
31
+ - ps : Start-Process node './start-selenium.js'
33
32
- ps : Push-Location
34
33
- cd test
35
34
- npm install
Original file line number Diff line number Diff line change
1
+ var seleniumStandalone = require ( 'selenium-standalone' ) ;
2
+
3
+ var installOptions = {
4
+ progressCb : function ( totalLength , progressLength , chunkLength ) {
5
+ var percent = 100 * progressLength / totalLength ;
6
+ console . log ( 'Installing selenium-standalone: ' + percent . toFixed ( 0 ) + '%' ) ;
7
+ }
8
+ } ;
9
+
10
+ console . log ( 'Installing selenium-standalone...' ) ;
11
+ seleniumStandalone . install ( installOptions , function ( err ) {
12
+ if ( err ) {
13
+ throw err ;
14
+ }
15
+
16
+ var startOptions = {
17
+ javaArgs : [ '-Djna.nosys=true' ] ,
18
+ spawnOptions : { stdio : 'inherit' }
19
+ } ;
20
+
21
+ console . log ( 'Starting selenium-standalone...' ) ;
22
+ seleniumStandalone . start ( startOptions , function ( err , seleniumProcess ) {
23
+ if ( err ) {
24
+ throw err ;
25
+ }
26
+
27
+ console . log ( 'Started Selenium server' ) ;
28
+
29
+ } ) ;
30
+ } ) ;
You can’t perform that action at this time.
0 commit comments