Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing typings #3319

Merged
merged 10 commits into from
Jan 15, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/Options.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ Count of request retries to the Selenium server
Type: `Number`<br>
Default: `3`

### execArgv
Node arguments to specify when launching child processes

Type: `String[]`
Default: `null`

---

## WDIO Options
Expand Down Expand Up @@ -183,6 +177,12 @@ reporters: [
]
```

### execArgv
Node arguments to specify when launching child processes

Type: `String[]`
Default: `null`

## Hooks

WebdriverIO allows you to set hooks to interfere into the test lifecycle in order to e.g. take screenshot if a test fails. Every hook has as parameter specific information about the lifecycle (e.g. information about the test suite or test). The following hooks are available: `onPrepare`, `beforeSession`, `before`, `beforeSuite`, `beforeHook`, `afterHook`, `beforeTest`, `beforeCommand`, `afterCommand`, `afterTest`, `afterSuite`, `after`, `afterSession`, `onComplete`, `onReload`, `beforeFeature`, `beforeScenario`, `beforeStep`, `afterStep`, `afterScenario`, `afterFeature`.
Expand Down
21 changes: 21 additions & 0 deletions packages/webdriverio/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ export const WDIO_DEFAULTS = {
suites: {
type: 'object'
},
/**
* capabilities of WebDriver sessions
*/
capabilities: {
type: 'object[]',
required: true
},
/**
* Shorten navigateTo command calls by setting a base url
*/
Expand Down Expand Up @@ -146,6 +153,20 @@ export const WDIO_DEFAULTS = {
return true
}
},
/**
* set of WDIO services to use
*/
services: {
type: 'string[]',
christian-bromann marked this conversation as resolved.
Show resolved Hide resolved
default: []
},
/**
* Node arguments to specify when launching child processes
*/
execArgv: {
type: 'string[]',
default: []
},
/**
* amount of instances to be allowed to run in total
*/
Expand Down
1 change: 0 additions & 1 deletion scripts/templates/webdriver.tpl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ declare namespace WebDriver {
[name: string]: string;
},
capabilities: DesiredCapabilities;
execArgv?: string[];
logLevel: WebDriverLogTypes;
logOutput: string | NodeJS.WritableStream
connectionRetryTimeout?: number;
Expand Down
1 change: 1 addition & 0 deletions scripts/templates/webdriverio.tpl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ declare namespace WebdriverIO {
jasmineNodeOpts?: object,
reporters?: string[] | object[],
services?: string[],
execArgv?: string[]
}

interface Element<T> {
Expand Down