This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Commands
The following commands can be used in tests or in script\console
browser– access the browsergoto url– go to a url; url is relative to the base url.site.config[:url]– returns the base url of the environment (see also Configuration Options)
These are two different ways of doing the same thing:
browser.goto site.config[:url] goto ''
In addition, you can access any page; e.g. home_page will return an instance of HomePage. See Pages
Execution Contexts
These commands will work in any “execution context”. WatirCraft supplies several execution contexts:
- Inside an
itblock in an Rspec test - Inside a
beforeorafterblock in an Rspec test - Inside a step definition for a Cucumber test
- At the script\console prompt (after
irb START) - Inside your
initialize_browsermethod definition for your Site. - Inside a project method






