Sha256: 9701188aa872fe94d19283ac4c214592839efe7f8b060cac2e43183c254a692d

Contents?: true

Size: 1.51 KB

Versions: 2

Compression:

Stored size: 1.51 KB

Contents

#selenium-connect
===============

This library aims to make configuring and running your Selenium tests against a Selenium Server simple for both local and remote execution.

## Getting Started
```ruby
require 'selenium-connect'

SeleniumConnect.configure do |c|
  c.host         = "localhost"
  c.port         = "4444"
  c.browser      = "firefox"
  c.profile_path = "#{Dir.pwd}/profiles/your_custom_firefox_profile"
end

@driver = SeleniumConnect.start

@driver.get "http://www.google.com"

SeleniumConnect.finish
```  

## Helpful bits

### Selenium Actions  
This library uses the Selenium WebDriver Remote Bridge actions. You can find them [here](http://www.ruby-doc.org/gems/docs/b/bbc-selenium-webdriver-1.17.0/Selenium/WebDriver/Remote/Bridge.html).  

### Start  
If host is set to "localhost", it will download the latest selenium-standalone-server.jar (unless it already has) and run it. Or, you can specify your own jar (if you have one you prefer to use). If no additional parameters are set, it will be exected in the background, with logging disabled. This functionality is driven using the [Selenium Rake Server Task](http://selenium.googlecode.com/svn/trunk/docs/api/rb/Selenium/Rake/ServerTask.html). 

### Finish  
Issues a quit command to the driver (and stops the local server if your host is set to "localhost").  

### Support  
Currently, Firefox solo & with a pre-fab custom profile is all that is supported. More coming soon!  

### Versioning  
This project loosely follows [Semantic Versioning](http://semver.org/).

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
selenium-connect-1.2.1 README.md
selenium-connect-1.2.0 README.md