This repository was archived by the owner on Apr 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
List of supported elements
caius edited this page Aug 14, 2010
·
6 revisions
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
| 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 |
| 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 |
| 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 |