Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swashcap/webdriverio-table-tester
Get tables’ columns’ text with WebdriverIO.
https://github.com/swashcap/webdriverio-table-tester
Last synced: 5 days ago
JSON representation
Get tables’ columns’ text with WebdriverIO.
- Host: GitHub
- URL: https://github.com/swashcap/webdriverio-table-tester
- Owner: swashcap
- Created: 2015-06-16T15:26:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-16T15:46:36.000Z (over 9 years ago)
- Last Synced: 2023-04-01T03:29:03.127Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebdriverIO Table Tester
_Get tables’ columns’ text with [WebdriverIO](http://webdriver.io)._
## Setup
1. First, you’ll need the selenium standalone server. Make sure you have the
JDK (try running `javac -version` to see if you have it.) Then, follow steps
2 and 3 on [WebdriverIO’s Getting Started
guide](http://webdriver.io/guide.html). Version 2.45.0 is the latest at the
time of writing. If the guide suggests a new version you will need to update
the `.jar` file reference in _package.json_.
2. Install dependencies with `npm install`.
3. Make sure you have [Firefox](https://www.mozilla.org/en-US/firefox/new/) as
WebdriverIO uses it by default. (You can change this via the `options`
variable at the top of _test.js_.)## Firing It Up
This project uses [http-server](https://www.npmjs.com/package/http-server) to
serve up its _index.html_ file. _test.js_ uses WebdriverIO to examine this file.
Here’s how to fire up selenium and the server:* Run `npm run serve` to fire up the local server. You can navigate to
[localhost:8080](http://localhost:8080) and see the file.
* Run `npm start` in another terminal tab/window to fire up the selenium server.You’re now ready to run the tests! In yet another terminal tab/window, run `npm
test`. This will output test results in the terminal.## What Is Happening, Here?
The code in
_[test.js](https://github.com/swashcap/webdriverio-table-tester/blob/master/test.js)_
contains extensive comments. Go read it!