Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' into greenkeeper/@types/node-7.0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
clebert committed Jun 2, 2017
2 parents f6aef9f + 1550d3d commit 8fbad62
Show file tree
Hide file tree
Showing 22 changed files with 175 additions and 159 deletions.
6 changes: 3 additions & 3 deletions SUMMARY.md
Expand Up @@ -23,10 +23,10 @@
* [it](docs/api-reference/exports/it.md)

* Interfaces
* [Test](docs/api-reference/interfaces/test.md)
* [Browser](docs/api-reference/interfaces/browser.md)
* [Element](docs/api-reference/interfaces/element.md)
* [PredicateBuilder](docs/api-reference/interfaces/predicate-builder.md)
* [SeleniumBrowser](docs/api-reference/interfaces/selenium-browser.md)
* [SeleniumElement](docs/api-reference/interfaces/selenium-element.md)
* [SeleniumTestContext](docs/api-reference/interfaces/selenium-test-context.md)

## Contributing

Expand Down
4 changes: 2 additions & 2 deletions docs/api-reference/exports/browser.md
Expand Up @@ -2,8 +2,8 @@

Type definition:

* **`browser: Browser`**
* [`Browser`](../interfaces/browser.md)
* **`browser: SeleniumBrowser`**
* [`SeleniumBrowser`](../interfaces/selenium-browser.md)

Example usage:

Expand Down
4 changes: 2 additions & 2 deletions docs/api-reference/exports/define-element.md
Expand Up @@ -2,8 +2,8 @@

Type definition:

* **`defineElement(name: string, selector: string, index: number = 0): Element`**
* [`Element`](../interfaces/element.md)
* **`defineElement(name: string, selector: string, index: number = 0): SeleniumElement`**
* [`SeleniumElement`](../interfaces/selenium-element.md)

Example usage:

Expand Down
10 changes: 6 additions & 4 deletions docs/api-reference/exports/skip.md
Expand Up @@ -2,10 +2,12 @@

Type definition:

* **`skip(name: string, implementation: Implementation): void`**
* `Implementation: (t: Test<WebDriver>, config: Config) => Promise<void>`
* [`Test`](../interfaces/test.md)
* [`Config`](../../overview/configuring-cybernaut.md)
* **`skip(name: string, implementation: SeleniumTest): void`**
* `SeleniumTest: (t: SeleniumTestContext, config: SeleniumConfig) => Promise<void>`
* [`SeleniumTestContext`](../interfaces/selenium-test-context.md)
* `SeleniumConfig: {capabilities: Capabilities, timeouts: Timeouts, retries: number, retryDelay: number}`
* `Capabilities: {browserName: string}`
* `Timeouts: {element: number, page: number, script: number}`

Example usage:

Expand Down
10 changes: 6 additions & 4 deletions docs/api-reference/exports/test.md
Expand Up @@ -2,10 +2,12 @@

Type definition:

* **`test(name: string, implementation?: Implementation): void`**
* `Implementation: (t: Test<WebDriver>, config: Config) => Promise<void>`
* [`Test`](../interfaces/test.md)
* [`Config`](../../overview/configuring-cybernaut.md)
* **`test(name: string, implementation?: SeleniumTest): void`**
* `SeleniumTest: (t: SeleniumTestContext, config: SeleniumConfig) => Promise<void>`
* [`SeleniumTestContext`](../interfaces/selenium-test-context.md)
* `SeleniumConfig: {capabilities: Capabilities, timeouts: Timeouts, retries: number, retryDelay: number}`
* `Capabilities: {browserName: string}`
* `Timeouts: {element: number, page: number, script: number}`

Example usage:

Expand Down
@@ -1,4 +1,4 @@
# Interface: `Browser`
# Interface: `SeleniumBrowser`

## Accessor properties

Expand Down Expand Up @@ -30,7 +30,7 @@
Type definition:

* **`pageTitle: Accessor<WebDriver, string>`**
* **`pageTitle: SeleniumAccessor<string>`**

Example usage:

Expand All @@ -48,7 +48,7 @@ test('Example', async t => {
Type definition:

* **`pageUrl: Accessor<WebDriver, string>`**
* **`pageUrl: SeleniumAccessor<string>`**

Example usage:

Expand All @@ -66,7 +66,7 @@ test('Example', async t => {
Type definition:

* **`windowXPosition: Accessor<WebDriver, number>`**
* **`windowXPosition: SeleniumAccessor<number>`**

Example usage:

Expand All @@ -84,7 +84,7 @@ test('Example', async t => {
Type definition:

* **`windowYPosition: Accessor<WebDriver, number>`**
* **`windowYPosition: SeleniumAccessor<number>`**

Example usage:

Expand All @@ -102,7 +102,7 @@ test('Example', async t => {
Type definition:

* **`windowWidth: Accessor<WebDriver, number>`**
* **`windowWidth: SeleniumAccessor<number>`**

Example usage:

Expand All @@ -120,7 +120,7 @@ test('Example', async t => {
Type definition:

* **`windowHeight: Accessor<WebDriver, number>`**
* **`windowHeight: SeleniumAccessor<number>`**

Example usage:

Expand All @@ -138,7 +138,7 @@ test('Example', async t => {
Type definition:

* **`elementCount(selector: string): Accessor<WebDriver, number>`**
* **`elementCount(selector: string): SeleniumAccessor<number>`**

Example usage:

Expand All @@ -156,7 +156,7 @@ test('Example', async t => {
Type definition:

* **`scriptResult<T>(scriptName: string, script: AccessorScript<T>): Accessor<WebDriver, T>`**
* **`scriptResult<T>(scriptName: string, script: AccessorScript<T>): SeleniumAccessor<T>`**
* `AccessorScript<T>: (callback: (result: T) => void) => void`

Example usage:
Expand All @@ -182,7 +182,7 @@ test('Example', async t => {
Type definition:

* **`executeScript(scriptName: string, script: ActionScript): Action<WebDriver>`**
* **`executeScript(scriptName: string, script: ActionScript): SeleniumAction`**
* `ActionScript: (callback: () => void) => void`

Example usage:
Expand All @@ -208,7 +208,7 @@ test('Example', async t => {
Type definition:

* **`loadPage(url: string): Action<WebDriver>`**
* **`loadPage(url: string): SeleniumAction`**

Example usage:

Expand All @@ -226,7 +226,7 @@ test('Example', async t => {
Type definition:

* **`navigateBack(): Action<WebDriver>`**
* **`navigateBack(): SeleniumAction`**

Example usage:

Expand All @@ -244,7 +244,7 @@ test('Example', async t => {
Type definition:

* **`navigateForward(): Action<WebDriver>`**
* **`navigateForward(): SeleniumAction`**

Example usage:

Expand All @@ -262,7 +262,7 @@ test('Example', async t => {
Type definition:

* **`reloadPage(): Action<WebDriver>`**
* **`reloadPage(): SeleniumAction`**

Example usage:

Expand All @@ -280,7 +280,7 @@ test('Example', async t => {
Type definition:

* **`setWindowPosition(x: number, y: number): Action<WebDriver>`**
* **`setWindowPosition(x: number, y: number): SeleniumAction`**

Example usage:

Expand All @@ -298,7 +298,7 @@ test('Example', async t => {
Type definition:

* **`setWindowSize(width: number, height: number): Action<WebDriver>`**
* **`setWindowSize(width: number, height: number): SeleniumAction`**

Example usage:

Expand Down
@@ -1,4 +1,4 @@
# Interface: `Element`
# Interface: `SeleniumElement`

## Factory methods

Expand Down Expand Up @@ -32,7 +32,7 @@

Type definition:

* **`defineDescendantElement(name: string, selector: string, index: number = 0): Element`**
* **`defineDescendantElement(name: string, selector: string, index: number = 0): SeleniumElement`**

Example usage:

Expand All @@ -53,7 +53,7 @@ test('Example', async t => {
Type definition:

* **`existence: Accessor<WebDriver, boolean>`**
* **`existence: SeleniumAccessor<boolean>`**

Example usage:

Expand All @@ -73,7 +73,7 @@ test('Example', async t => {
Type definition:

* **`visibility: Accessor<WebDriver, boolean>`**
* **`visibility: SeleniumAccessor<boolean>`**

Example usage:

Expand All @@ -95,7 +95,7 @@ test('Example', async t => {
Type definition:

* **`tagName: Accessor<WebDriver, string>`**
* **`tagName: SeleniumAccessor<string>`**

Example usage:

Expand All @@ -115,7 +115,7 @@ test('Example', async t => {
Type definition:

* **`text: Accessor<WebDriver, string>`**
* **`text: SeleniumAccessor<string>`**

Example usage:

Expand All @@ -135,7 +135,7 @@ test('Example', async t => {
Type definition:

* **`xPosition: Accessor<WebDriver, number>`**
* **`xPosition: SeleniumAccessor<number>`**

Example usage:

Expand All @@ -155,7 +155,7 @@ test('Example', async t => {
Type definition:

* **`yPosition: Accessor<WebDriver, number>`**
* **`yPosition: SeleniumAccessor<number>`**

Example usage:

Expand All @@ -175,7 +175,7 @@ test('Example', async t => {
Type definition:

* **`width: Accessor<WebDriver, number>`**
* **`width: SeleniumAccessor<number>`**

Example usage:

Expand All @@ -195,7 +195,7 @@ test('Example', async t => {
Type definition:

* **`height: Accessor<WebDriver, number>`**
* **`height: SeleniumAccessor<number>`**

Example usage:

Expand All @@ -215,7 +215,7 @@ test('Example', async t => {
Type definition:

* **`attributeValue(attributeName: string): Accessor<WebDriver, string | null>`**
* **`attributeValue(attributeName: string): SeleniumAccessor<string | null>`**

Example usage:

Expand All @@ -235,7 +235,7 @@ test('Example', async t => {
Type definition:

* **`cssValue(cssName: string): Accessor<WebDriver, string>`**
* **`cssValue(cssName: string): SeleniumAccessor<string>`**

Example usage:

Expand All @@ -255,7 +255,7 @@ test('Example', async t => {
Type definition:

* **`descendantElementCount(selector: string): Accessor<WebDriver, number>`**
* **`descendantElementCount(selector: string): SeleniumAccessor<number>`**

Example usage:

Expand All @@ -275,7 +275,7 @@ test('Example', async t => {
Type definition:

* **`clearValue(): Action<WebDriver>`**
* **`clearValue(): SeleniumAction`**

Example usage:

Expand All @@ -295,7 +295,7 @@ test('Example', async t => {
Type definition:

* **`click(): Action<WebDriver>`**
* **`click(): SeleniumAction`**

Example usage:

Expand All @@ -315,7 +315,7 @@ test('Example', async t => {
Type definition:

* **`sendKeys(...keys: string[]): Action<WebDriver>`**
* **`sendKeys(...keys: string[]): SeleniumAction`**

Example usage:

Expand Down Expand Up @@ -347,7 +347,7 @@ test('Example', async t => {
Type definition:

* **`submitForm(): Action<WebDriver>`**
* **`submitForm(): SeleniumAction`**

Example usage:

Expand Down
@@ -1,4 +1,4 @@
# Interface: `Test<T>`
# Interface: `SeleniumTestContext`

## Methods

Expand All @@ -10,7 +10,7 @@

Type definition:

* **`assert<S>(accessor: Accessor<T, S>, predicate: Predicate<S>, options?: Options): Promise<void>`**
* **`assert<T>(accessor: SeleniumAccessor<T>, predicate: Predicate<T>, options?: Options): Promise<void>`**
* `Options: {retries?: number, retryDelay?: number}`

Example usage:
Expand All @@ -30,7 +30,7 @@ test('Example', async t => {

Type definition:

* **`perform(action: Action<T>, options?: Options): Promise<void>`**
* **`perform(action: SeleniumAction, options?: Options): Promise<void>`**
* `Options: {retries?: number, retryDelay?: number}`

Example usage:
Expand All @@ -50,7 +50,7 @@ test('Example', async t => {

Type definition:

* **`verify<S>(accessor: Accessor<T, S>, predicate: Predicate<S>, options?: Options): Promise<boolean>`**
* **`verify<T>(accessor: SeleniumAccessor<T>, predicate: Predicate<T>, options?: Options): Promise<boolean>`**
* `Options: {retries?: number, retryDelay?: number}`

Example usage:
Expand Down

0 comments on commit 8fbad62

Please sign in to comment.