derby-webdriverio
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "derby-webdriverio", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Webdriver.io for Derby.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,8 @@ # derby-webdriverio | ||
## Installation | ||
``` | ||
npm i --save webdriverio derby-webdriverio | ||
``` | ||
## Usage | ||
@@ -19,3 +25,3 @@ | ||
Create `wdio.conf.js` in the project root folder: | ||
Create `wdio.conf.js` in project's root folder: | ||
@@ -60,18 +66,31 @@ ```js | ||
To run your tests: | ||
``` | ||
./node_modules/.bin/wdio | ||
``` | ||
If you want to run it as `npm test` you can add the following script to your `package.json`: | ||
``` | ||
browsers: { | ||
"scripts": { | ||
"test": "wdio", | ||
}, | ||
``` | ||
## .*AndWait | ||
--- | ||
### `.*AndWait()` | ||
These methods accept the same arguments as the original methods. | ||
They do the same action and wait for derby page to fully load after that. | ||
### `.urlAndWait()` | ||
### `.clickAndWait()` | ||
### `.submitFormAndWait()` | ||
##### `.urlAndWait()` | ||
##### `.clickAndWait()` | ||
##### `.submitFormAndWait()` | ||
## model | ||
--- | ||
### model | ||
All racer `get-` and `set-` methods are available. | ||
@@ -81,3 +100,3 @@ | ||
### `.modelGet()` | ||
##### `.modelGet()` | ||
@@ -91,3 +110,3 @@ ```coffee | ||
### `.modelSet()` | ||
##### `.modelSet()` | ||
@@ -104,8 +123,10 @@ ```coffee | ||
### all other get/set methods are supported -- `.modelAdd`, `.modelPop`, etc. | ||
##### all other get/set methods are supported -- `.modelAdd`, `.modelPop`, etc. | ||
## history | ||
--- | ||
### `.historyPush(path)` | ||
### history | ||
##### `.historyPush(path)` | ||
Do `app.history.push` on the client and wait for the page to fully load. | ||
@@ -120,12 +141,14 @@ | ||
### `.historyRefresh()` | ||
##### `.historyRefresh()` | ||
Refresh the page using `app.history.refresh` on the client. | ||
## `X` XPath function | ||
--- | ||
### `X()` - XPath function | ||
XPath helper function, provides better support for querying text nodes. | ||
Available globally as `X` | ||
### `X([selector], text)` | ||
##### `X([selector], text)` | ||
@@ -141,8 +164,10 @@ Returns an XPath selector to find a node which holds `text`. | ||
## Chai shorthands | ||
--- | ||
### Chai shorthands | ||
A bunch of useful shorthand methods to test things. | ||
All of them accept the arguments which will be passed to `X()` function. | ||
### `shouldExist()` | ||
##### `shouldExist()` | ||
@@ -156,7 +181,7 @@ ```coffee | ||
### `shouldNotExist()` | ||
### `shouldBeVisible()` | ||
### `shouldNotBeVisible()` | ||
##### `shouldNotExist()` | ||
##### `shouldBeVisible()` | ||
##### `shouldNotBeVisible()` | ||
### `shouldExecute` | ||
##### `shouldExecute` | ||
@@ -163,0 +188,0 @@ Accepts the same arguments as `.execute()` and checks that its return value |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23179
182