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

https://github.com/m4n3dw0lf/selenium-watchdog

Optimize front-end web development, Watchdog detect file changes and Selenium auto-refresh the webdriver
https://github.com/m4n3dw0lf/selenium-watchdog

css3 ejs-templates html5 javascript refresher refreshlayout selenium-webdriver watchdog web

Last synced: 2 months ago
JSON representation

Optimize front-end web development, Watchdog detect file changes and Selenium auto-refresh the webdriver

Awesome Lists containing this project

README

        

![alt text](https://img.shields.io/badge/version-0.1-green.svg)
![alt text](https://img.shields.io/badge/python-2.7-blue.svg)
![alt text](https://img.shields.io/badge/OS-GNU%2FLinux-000000.svg)
[![alt text](https://img.shields.io/badge/donate-bitcoin-orange.svg)](https://blockchain.info/address/1Eggia3JXwWiR4mkVqztionNUfs2N3ghAd)

# selenium-watchdog

Automatically seek for changes on your files in your current directory recursively and refreshes the selenium browser to check the frontend changes.

## Requisites
- Python2.7
- GNU/Linux OS x64

## Installation
```
git clone https://github.com/m4n3dw0lf/selenium-watchdog
cd selenium-watchdog
pip install selenium watchdog
wget https://github.com/mozilla/geckodriver/releases/download/v0.13.0/geckodriver-v0.13.0-linux64.tar.gz
tar -xvzf geckodriver*
#or any other directory inside your $PATH variable
sudo cp geckodriver /usr/local/bin
chmod +x selenium-watchdog.py
#or any other directory inside your $PATH variable
sudo cp selenium-watchdog.py /usr/local/bin/selenium-watchdog
```

## Usage
- Navigate to the project folder that you want to monitor file changes
- Start to listen your web-server
- Run:
```
selenium-watchdog
```

## Example
```
selenium-watchdog http://localhost:1337
```