This repository was archived by the owner on Apr 8, 2020. It is now read-only.
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:
2727clone_depth : 1
2828test_script :
2929 - 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'
3332 - ps : Push-Location
3433 - cd test
3534 - 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