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 (
List of supported elements
Default how parameters
Every element method has a default how parameter, so that you can only call them with one parameter; the what parameter. However, beware that even if you can code more quickly and your code becomes more compact, it’s readability and clarity may suffer.
@browser.button('big').id # Gets the id attribute of a button with value="big" equivalent to
@browser.button(:value, 'big').id
Form elements
| Method | Element | Element class | Default how parameter |
|---|---|---|---|
| button | |
Celerity::Button | :value |
| check_box | |
Celerity::CheckBox | :name |
| file_field | |
Celerity::FileField | :name |
| form | |
Celerity::Form | :name |
| hidden | |
Celerity::Hidden | :name |
| label | |
Celerity::Label | :text |
| option | |
Celerity::Option | :text |
| radio | |
Celerity::Radio | :name |
| select_list | |
Celerity::SelectList | :name |
| text_field | |
Celerity::TextField | :name |
Table elements
| Method | Element | Element class | Default how parameter |
|---|---|---|---|
| cell | |
Celerity::TableCell | :id |
| row | |
Celerity::TableRow | :id |
| table | |
Celerity::Table | :id |
| tbody | |
Celerity::TableBody | :id |
| tfoot | |
Celerity::TableFooter | :id |
| th | |
Celerity::Th | :id |
| thead | |
Celerity::TableHeader | :id |
Other
| Method | Element | Element class | Default how parameter |
|---|---|---|---|
| area | |
Celerity::Area | :id |
| dd | |
Celerity::Dd | :id |
| div | |
Celerity::Div | :id |
| dl | |
Celerity::Dl | :id |
| dt | |
Celerity::Dt | :id |
| em | |
Celerity::Em | :id |
| frame | |
Celerity::Frame | :name |
| h1, h2, h3, h4, h5, h6 | |
Celerity::H1, Celerity::H2, … | :id |
| image | |
Celerity::Image | :src |
| li | |
Celerity::Li | :id |
| link | |
Celerity::Link | :href |
| map | |
Celerity::Map | :id |
| meta | |
Celerity::Meta | :id |
| ol | |
Celerity::Ol | :id |
| p | |
Celerity::P | :id |
| pre | |
Celerity::Pre | :id |
| span | |
Celerity::Span | :id |
| strong | |
Celerity::Strong | :id |
| ul | |
Celerity::Ul | :id |






