Watir Example - Sol Aluno
Windows
-
Download and install the latest version from
rubyinstaller -
Open Cmd Ruby.
gem install 'watir'
gem install 'webdrivers'
gem install 'faker'
(for random data)
Execute from the command line with:
ruby TEST_NAME.rb
Example:
ruby AlunoAtivoAcessaSolAluno_S.rb
Open irb and enter each command line by line to see what it is doing
irb
- Text Fields
- Select Lists - Combos
- Radios
- Checkboxes
- Buttons
- Links
- Divs & Spans
- ID
- Name
- Tag Name
- Class Name
- Text
- Visible Text
- Data Attributes
- Aria Attributes
- Valid or Custom Attributes
- Label
- Index
- When Present and When Enabled
- Watir Wait and Waitable Modules
- Wait Until Present and Wait While Present