Skip to content
This repository

Executable specification of the Watir API

branch: master
Octocat-spinner-32 html specs for aria attributes (watir/watir-webdriver#233) December 09, 2013
Octocat-spinner-32 lib Make sure browser args are correctly set/reported. October 18, 2013
Octocat-spinner-32 .gitignore added tests for wait timer March 28, 2014
Octocat-spinner-32 LICENSE Bump year in copyright January 02, 2014
Octocat-spinner-32 README.markdown README fixes January 18, 2012
Octocat-spinner-32 alert_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 area_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 areas_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 browser_spec.rb rspec3 compatibility: be true and be_true are not the same March 28, 2014
Octocat-spinner-32 button_spec.rb Add spec for locating button elements by :value + Regexp. January 29, 2014
Octocat-spinner-32 buttons_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 checkbox_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 checkboxes_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 collections_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 cookies_spec.rb rspec3 compatibility: be true and be_true are not the same March 28, 2014
Octocat-spinner-32 dd_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 dds_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 del_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 dels_spec.rb
Octocat-spinner-32 div_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 divs_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 dl_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 dls_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 drag_and_drop_spec.rb Move failing Firefox spec into guarded block. January 08, 2014
Octocat-spinner-32 dt_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 dts_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 element_spec.rb specs for #inner_html and #outer_html April 02, 2014
Octocat-spinner-32 em_spec.rb
Octocat-spinner-32 ems_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 filefield_spec.rb Tolerate relative path for file_field.value (as other specs already do) January 08, 2014
Octocat-spinner-32 filefields_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 font_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 form_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 forms_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 frame_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 frames_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 hidden_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 hiddens_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 hn_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 hns_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 iframe_spec.rb spec frame/parent switch watir/watir-webdriver#237 January 11, 2014
Octocat-spinner-32 iframes_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 image_spec.rb rspec3 compatibility: be true and be_true are not the same March 28, 2014
Octocat-spinner-32 images_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 ins_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 inses_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 label_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 labels_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 li_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 link_spec.rb rspec3 compatibility: be true and be_true are not the same March 28, 2014
Octocat-spinner-32 links_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 lis_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 map_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 maps_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 meta_spec.rb
Octocat-spinner-32 metas_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 modal_dialog_spec.rb Add spec for ModalDialog#focus - watir/watir-classic#64. November 24, 2013
Octocat-spinner-32 ol_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 ols_spec.rb
Octocat-spinner-32 option_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 p_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 pre_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 pres_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 ps_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 radio_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 radios_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 screenshot_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 select_list_spec.rb
Octocat-spinner-32 select_lists_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 span_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 spans_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 spec_helper.rb Add SilentLogger to silence WEBrick once and for all. Closes #29. January 07, 2013
Octocat-spinner-32 strong_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 strongs_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 table_nesting_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 table_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 tables_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 tbody_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 tbodys_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 td_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 tds_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 text_field_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 text_fields_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 textarea_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 textareas_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 tfoot_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 tfoots_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 thead_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 theads_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 tr_spec.rb
Octocat-spinner-32 trs_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq… October 26, 2013
Octocat-spinner-32 ul_spec.rb Formatting fix, not functional changes. January 08, 2014
Octocat-spinner-32 uls_spec.rb
Octocat-spinner-32 wait_spec.rb Merge pull request #44 from VladimirTS/timer March 28, 2014
Octocat-spinner-32 watirspec.rake Merge branch 'master' into watir2 October 11, 2010
Octocat-spinner-32 window_switching_spec.rb rspec3 compatibility: be true and be_true are not the same March 28, 2014
README.markdown

What

This repository is intended to be used as a git submodule for projects that want to implement Watir's API.

The specs run a small Sinatra webapp (WatirSpec::Server) to simulate interacting with a web server. However, most specs use the file:// scheme to avoid hitting the server.

How to use

First add the submodule to spec/watirspec:

$ git submodule add git://github.com/watir/watirspec.git spec/watirspec

The specs will look for implementation.rb in its parent directory (i.e. spec/). In this file you need to define some details about your implementation that WatirSpec needs to know

Here's an example of what spec/implementation.rb would look like for the imaginary implementation AwesomeWatir:

$LOAD_PATH.unshift(«lib folder»)
require "awesomewatir"

include AwesomeWatir::Exception # needed for now..

WatirSpec::Implementation do |imp|
  imp.name = :awesome

  imp.browser_class = AwesomeWatir::Browser
  imp.browser_args  = [:some => 'option']
end

WatirSpec.persistent_browser = false               # defaults to true, but can be disabled if needed
WatirSpec::Server.autorun    = false               # defaults to true, but can be disabled if needed

WatirSpec::Server.get("/my_route") { "content" }   # add routes to the server for implementation-specific specs

Implementation-specific specs should be placed at the root of the spec/ folder. To use the setup code from watirspec, simply require "watirspec/spec_helper" (which in turn will load your spec/spec_helper.rb).

Guards

WatirSpec includes a system to guard specs that are failing.

WRITE ME

Where

Something went wrong with that request. Please try again.