Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Executable specification of the Watir API
Ruby HTML
branch: master
Failed to load latest commit information.
html Add inner_outer.html to watirspec since specs are there
lib Force webrick as server
.gitignore added tests for wait timer
LICENSE Bump year in copyright
README.markdown README fixes
alert_spec.rb Formatting fix, not functional changes.
area_spec.rb Use full path to exceptions. Closes #33
areas_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
browser_spec.rb Use full path to exceptions. Closes #33
button_spec.rb Use full path to exceptions. Closes #33
buttons_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
checkbox_spec.rb Use full path to exceptions. Closes #33
checkboxes_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
collections_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
cookies_spec.rb rspec3 compatibility: be true and be_true are not the same
dd_spec.rb Use full path to exceptions. Closes #33
dds_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
del_spec.rb Use full path to exceptions. Closes #33
dels_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
div_spec.rb Use full path to exceptions. Closes #33
divs_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
dl_spec.rb Use full path to exceptions. Closes #33
dls_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
drag_and_drop_spec.rb Move failing Firefox spec into guarded block.
dt_spec.rb Use full path to exceptions. Closes #33
dts_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
element_spec.rb Use full path to exceptions. Closes #33
elements_spec.rb Element collection for non-existing locator should return non-existin…
em_spec.rb Use full path to exceptions. Closes #33
ems_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
filefield_spec.rb Use full path to exceptions. Closes #33
filefields_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
font_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
form_spec.rb Use full path to exceptions. Closes #33
forms_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
frame_spec.rb Use full path to exceptions. Closes #33
frames_spec.rb specs for using selectors with frame collections
hidden_spec.rb Use full path to exceptions. Closes #33
hiddens_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
hn_spec.rb Use full path to exceptions. Closes #33
hns_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
iframe_spec.rb Use full path to exceptions. Closes #33
iframes_spec.rb remove unnecessary always_locate toggling in spec
image_spec.rb Use full path to exceptions. Closes #33
images_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
ins_spec.rb Use full path to exceptions. Closes #33
inses_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
label_spec.rb Use full path to exceptions. Closes #33
labels_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
li_spec.rb Use full path to exceptions. Closes #33
link_spec.rb Use full path to exceptions. Closes #33
links_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
lis_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
map_spec.rb Use full path to exceptions. Closes #33
maps_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
meta_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
metas_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
modal_dialog_spec.rb Add spec for ModalDialog#focus - watir/watir-classic#64.
ol_spec.rb Use full path to exceptions. Closes #33
ols_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
option_spec.rb Use full path to exceptions. Closes #33
p_spec.rb Use full path to exceptions. Closes #33
pre_spec.rb Use full path to exceptions. Closes #33
pres_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
ps_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
radio_spec.rb Use full path to exceptions. Closes #33
radios_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
screenshot_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
select_list_spec.rb Use full path to exceptions. Closes #33
select_lists_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
span_spec.rb Use full path to exceptions. Closes #33
spans_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
spec_helper.rb Add SilentLogger to silence WEBrick once and for all. Closes #29.
strong_spec.rb Use full path to exceptions. Closes #33
strongs_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
table_nesting_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
table_spec.rb Use full path to exceptions. Closes #33
tables_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
tbody_spec.rb Use full path to exceptions. Closes #33
tbodys_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
td_spec.rb Use full path to exceptions. Closes #33
tds_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
text_field_spec.rb Use full path to exceptions. Closes #33
text_fields_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
textarea_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
textareas_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
tfoot_spec.rb Use full path to exceptions. Closes #33
tfoots_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
thead_spec.rb Use full path to exceptions. Closes #33
theads_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
tr_spec.rb Use full path to exceptions. Closes #33
trs_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
ul_spec.rb Use full path to exceptions. Closes #33
uls_spec.rb Change from RSpect should syntax to expect syntax. Also from == to eq…
wait_spec.rb a call to wait with a timeout of zero should execute once
watirspec.rake Merge branch 'master' into watir2
window_switching_spec.rb Use full path to exceptions. Closes #33

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.