An open API service indexing awesome lists of open source software.

https://github.com/sesh/ghostly

A really simple way to write selenium tests for your site
https://github.com/sesh/ghostly

python selenium testing

Last synced: about 1 year ago
JSON representation

A really simple way to write selenium tests for your site

Awesome Lists containing this project

README

          

# Ghostly

## Installation

```shell
> pip install -U git+https://github.com/sesh/ghostly
```

### Running the sample tests

```shell
> ./ghostly.py google/search.yml
```

---

The actions and asserts available in ghostly are simple and straight forward. Check the source for better documentation.

## Actions

- load
- click
- fill
- submit
- wait

## Asserts

- assert_text
- assert_not_text
- assert_element
- assert_value
- assert_title
- assert_url

## Browsers

Currently ghostly supports running tests with one or more of `chrome` (via chromedriver), `firefox` and `phantomjs`.

### Browser Stack

Use [this form](https://www.browserstack.com/automate/python#setting-os-and-browser) to create compatible combinations
of browser capabilities, then create a `remote` dict in your yaml file like this:

```yaml
browsers:
- remote:
url: "http://:@hub.browserstack.com:80/wd/hub"
os: "Windows"
os_version: "10"
browser: "IE"
browser_version: "11"
resolution: "1680x1050"
```