Module: PageObject::Elements
- Defined in:
- lib/page-object/elements.rb,
lib/page-object/elements/div.rb,
lib/page-object/elements/area.rb,
lib/page-object/elements/bold.rb,
lib/page-object/elements/form.rb,
lib/page-object/elements/link.rb,
lib/page-object/elements/span.rb,
lib/page-object/elements/audio.rb,
lib/page-object/elements/image.rb,
lib/page-object/elements/label.rb,
lib/page-object/elements/media.rb,
lib/page-object/elements/table.rb,
lib/page-object/elements/video.rb,
lib/page-object/elements/button.rb,
lib/page-object/elements/canvas.rb,
lib/page-object/elements/italic.rb,
lib/page-object/elements/option.rb,
lib/page-object/elements/element.rb,
lib/page-object/elements/heading.rb,
lib/page-object/elements/check_box.rb,
lib/page-object/elements/list_item.rb,
lib/page-object/elements/paragraph.rb,
lib/page-object/elements/table_row.rb,
lib/page-object/elements/text_area.rb,
lib/page-object/elements/date_field.rb,
lib/page-object/elements/file_field.rb,
lib/page-object/elements/table_cell.rb,
lib/page-object/elements/text_field.rb,
lib/page-object/elements/select_list.rb,
lib/page-object/elements/hidden_field.rb,
lib/page-object/elements/ordered_list.rb,
lib/page-object/elements/radio_button.rb,
lib/page-object/elements/unordered_list.rb
Defined Under Namespace
Classes: Area, Audio, Bold, Button, Canvas, CheckBox, DateField, Div, Element, FileField, Form, Heading, HiddenField, Image, Italic, Label, Link, ListItem, Media, Option, OrderedList, Paragraph, RadioButton, SelectList, Span, Table, TableCell, TableRow, TextArea, TextField, UnorderedList, Video
Class Method Summary collapse
-
.element_class_for(tag_name, type = nil) ⇒ Object
method to return the element for a tag_name.
-
.tag_to_class ⇒ Object
method to return the collection of tag_name to class mappings.
- .type_to_class ⇒ Object
Class Method Details
.element_class_for(tag_name, type = nil) ⇒ Object
method to return the element for a tag_name
19 20 21 22 |
# File 'lib/page-object/elements.rb', line 19 def element_class_for(tag_name, type=nil) return type_to_class[type.to_sym] if type tag_to_class[tag_name.to_sym] || ::PageObject::Elements::Element end |
.tag_to_class ⇒ Object
method to return the collection of tag_name to class mappings
8 9 10 |
# File 'lib/page-object/elements.rb', line 8 def tag_to_class @tag_to_class ||= {} end |
.type_to_class ⇒ Object
12 13 14 |
# File 'lib/page-object/elements.rb', line 12 def type_to_class @type_to_class ||= {} end |