README.md in browser_shooter-0.1.3 vs README.md in browser_shooter-0.2.3
- old
+ new
@@ -17,17 +17,22 @@
#### Pluging for IE screenshots
[Spnapsie](http://snapsie.sourceforge.net/)
-Repeat this steps in every VM.
+#### Chrome WebDriver
+
+In the servers that are gonna execute Chrome you have to install the [ChromeDriver](http://code.google.com/p/selenium/wiki/ChromeDriver).
+
+Repeat these steps in every VM.
+
### Setup the client
#### Install the gem
- gem install "browsers_shooter"
+ gem install "browser_shooter"
#### Config your BrowserShooter script
Create a YAML file like this:
@@ -36,35 +41,35 @@
logs_format: "csv"
scripts:
google:
name: "google"
- url: "http://www.google.de"
- # commands are Selenium commands
+ # commands are WebDriver commands
# except 'shot' command which receive an optional param with the 'sufix' of the page screenshot png
- # except 'shot_system' command which receive an optional param with the 'sufix' of the system screenshot png
# except 'pause' command which use a Ruby 'sleep' command to pause
+ # except 'click' command whith receive a 'css_selector' as a param, find the element and click on it
+ # except 'type' command whith receive two params: 'css_selector' ana a 'message', find the element and type the message on it
+ # except 'wait_for_element' command whith receive two params: 'css_selector', and a 'timeout' in seconds
commands: |
- open "/"
- window_maximize
+ navigate.to "http://www.google.de"
shot before
- type "id=lst-ib", "fernando guillen"
- click "name=btnG", wait_for :page
+ type "input[name='q']", "beautiful houses"
+ click "input[name='btnG']"
pause 3
+ click "a.kls"
+ pause 3
shot after
browsers:
windows-firefox:
name: "windows-firefox"
- host: 10.211.55.4
- port: 4444
- browser: "*firefox"
+ url: "http://127.0.0.1:4444/wd/hub"
+ browser: "firefox"
windows-iexplore:
name: "windows-iexploreproxy"
- host: 10.211.55.4
- port: 4444
+ url: "http://127.0.0.1:4444/wd/hub"
browser: "*iexploreproxy"
Look in the [examples folder](https://github.com/fguillen/BrowserShooter/tree/master/examples) for more complete examples.
@@ -72,13 +77,14 @@
$ browser_shooter ./my/config.yml
The screenshots will be stored in:
- /<output_path>/<time_stamp>/shots/<script_name>_<browser_name>[_<sufix>].png
+ /<output_path>/<time_stamp>/shots
The logs will be stored in:
- /<output_path>/<time_stamp>/logs/<script_name>_<browser_name>[_<sufix>].png
+ /<output_path>/<time_stamp>/logs
+
## Status
Still in a _discovery_ state.. but is already **functional**.
\ No newline at end of file