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
- Host: GitHub
- URL: https://github.com/sesh/ghostly
- Owner: sesh
- License: isc
- Created: 2015-09-14T00:03:23.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-10-04T00:57:17.000Z (over 2 years ago)
- Last Synced: 2025-04-06T23:25:22.494Z (about 1 year ago)
- Topics: python, selenium, testing
- Language: Python
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"
```