0.0
No commit activity in last 3 years
No release in over 3 years
Simple way to build Selenium code as DSL
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

SeleniumDSL - Simple way to build Selenium code as DSL

Note

Deprecated in favor of Capybara

Installation

Add this line to to your Gemfile:

gem "selenium_dsl"

And then execute:

$ bundle

Usage

    require 'selenium_dsl'

    include SeleniumDSL::DSL

    selenium_server_address = 'localhost'
    selenium_server_port = 4444
    selenium_browser_key = '*firefox'
    timeout_in_seconds = 40

    webapp_url = "http://localhost:3000/web_app_name"

    init_selenium(selenium_server_address, selenium_server_port, selenium_browser_key, webapp_url, timeout_in_seconds)

    start_new_session

    selenium do
       open "/#{application_name}"

       click "some_link"

       fill_in("some_field", :with => "some_value")
    end

    close_session

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request