Skip to content

Commit

Permalink
update selenium-standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Grybyk committed Jun 18, 2021
1 parent 8e7a78c commit ab62a3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/wdio-selenium-standalone-service/package.json
Expand Up @@ -29,12 +29,12 @@
"dependencies": {
"@types/fs-extra": "^9.0.1",
"@types/node": "^14.14.31",
"@types/selenium-standalone": "^6.15.2",
"@types/selenium-standalone": "^7.0.0",
"@wdio/config": "7.7.3",
"@wdio/logger": "7.7.0",
"@wdio/types": "7.7.3",
"fs-extra": "^10.0.0",
"selenium-standalone": "^6.22.1"
"selenium-standalone": "^7.0.1"
},
"peerDependencies": {
"@wdio/cli": "^7.0.0"
Expand Down
7 changes: 2 additions & 5 deletions packages/wdio-selenium-standalone-service/src/launcher.ts
Expand Up @@ -2,7 +2,6 @@ import logger from '@wdio/logger'
import { isCloudCapability } from '@wdio/config'
import type { Capabilities, Options, Services } from '@wdio/types'

import { promisify } from 'util'
import fs from 'fs-extra'
import * as SeleniumStandalone from 'selenium-standalone'

Expand Down Expand Up @@ -71,8 +70,7 @@ export default class SeleniumStandaloneLauncher {
this.watchMode = Boolean(config.watch)

if (!this.skipSeleniumInstall) {
const install: (opts: SeleniumStandalone.InstallOpts) => Promise<unknown> = promisify(SeleniumStandalone.install)
await install(this.installArgs)
await SeleniumStandalone.install(this.installArgs)
}

/**
Expand Down Expand Up @@ -120,8 +118,7 @@ export default class SeleniumStandaloneLauncher {
/**
* start Selenium Standalone server
*/
const start: (opts: SeleniumStandalone.StartOpts) => Promise<SeleniumStandalone.ChildProcess> = promisify(SeleniumStandalone.start)
this.process = await start(this.args)
this.process = await SeleniumStandalone.start(this.args)

if (typeof this._config.outputDir === 'string') {
this._redirectLogStream()
Expand Down

0 comments on commit ab62a3f

Please sign in to comment.