Sha256: c962b945c35bcb4f6d755ea7cb8a04b3630275b438dcafe128c1aaf56e15e32b

Contents?: true

Size: 1.66 KB

Versions: 5

Compression:

Stored size: 1.66 KB

Contents

#selenium-connect [![Code Climate](https://codeclimate.com/github/arrgyle/selenium-connect.png)](https://codeclimate.com/github/arrgyle/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" # or c.profile_name = "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

5 entries across 5 versions & 1 rubygems

Version Path
selenium-connect-1.5.1 README.md
selenium-connect-1.5.0 README.md
selenium-connect-1.4.0 README.md
selenium-connect-1.3.1 README.md
selenium-connect-1.3.0 README.md