Module: Watir

Includes:
Selenium
Defined in:
lib/watir-webdriver/elements/generated.rb,
lib/watir-webdriver.rb,
lib/watir-webdriver.rb,
lib/watir-webdriver/browser.rb,
lib/watir-webdriver/container.rb,
lib/watir-webdriver/exception.rb,
lib/watir-webdriver/html/util.rb,
lib/watir-webdriver/html/visitor.rb,
lib/watir-webdriver/elements/font.rb,
lib/watir-webdriver/elements/form.rb,
lib/watir-webdriver/elements/link.rb,
lib/watir-webdriver/xpath_support.rb,
lib/watir-webdriver/elements/frame.rb,
lib/watir-webdriver/elements/image.rb,
lib/watir-webdriver/elements/input.rb,
lib/watir-webdriver/elements/radio.rb,
lib/watir-webdriver/elements/table.rb,
lib/watir-webdriver/html/generator.rb,
lib/watir-webdriver/elements/button.rb,
lib/watir-webdriver/elements/hidden.rb,
lib/watir-webdriver/elements/option.rb,
lib/watir-webdriver/elements/select.rb,
lib/watir-webdriver/extensions/wait.rb,
lib/watir-webdriver/html/idl_sorter.rb,
lib/watir-webdriver/attribute_helper.rb,
lib/watir-webdriver/elements/element.rb,
lib/watir-webdriver/window_switching.rb,
lib/watir-webdriver/elements/checkbox.rb,
lib/watir-webdriver/element_collection.rb,
lib/watir-webdriver/elements/table_row.rb,
lib/watir-webdriver/elements/file_field.rb,
lib/watir-webdriver/elements/text_field.rb,
lib/watir-webdriver/extensions/nokogiri.rb,
lib/watir-webdriver/html/spec_extractor.rb,
lib/watir-webdriver/locators/button_locator.rb,
lib/watir-webdriver/locators/element_locator.rb,
lib/watir-webdriver/locators/table_row_locator.rb,
lib/watir-webdriver/locators/text_field_locator.rb

Overview

Autogenerated from the HTML5 specification. Edits may be lost.

Defined Under Namespace

Modules: AttributeHelper, Container, Exception, HTML, Wait, WindowSwitching, XpathSupport Classes: Anchor, AnchorCollection, Applet, AppletCollection, Area, AreaCollection, Audio, AudioCollection, BR, BRCollection, Base, BaseCollection, BaseFont, BaseFontCollection, Body, BodyCollection, Browser, Button, ButtonCollection, ButtonLocator, Canvas, CanvasCollection, CheckBox, CheckBoxCollection, Command, CommandCollection, DList, DListCollection, DataList, DataListCollection, Details, DetailsCollection, Device, DeviceCollection, Directory, DirectoryCollection, Div, DivCollection, Element, ElementCollection, ElementLocator, Embed, EmbedCollection, FieldSet, FieldSetCollection, FileField, FileFieldCollection, Font, FontCollection, Form, FormCollection, Frame, FrameCollection, FrameSet, FrameSetCollection, HR, HRCollection, HTMLElement, HTMLElementCollection, Head, HeadCollection, Heading, HeadingCollection, Hidden, HiddenCollection, Html, HtmlCollection, IFrame, IFrameCollection, Image, ImageCollection, Input, InputCollection, Keygen, KeygenCollection, LI, LICollection, Label, LabelCollection, Legend, LegendCollection, Map, MapCollection, Marquee, MarqueeCollection, Media, MediaCollection, Menu, MenuCollection, Meta, MetaCollection, Meter, MeterCollection, Mod, ModCollection, OList, OListCollection, Object, ObjectCollection, OptGroup, OptGroupCollection, Option, OptionCollection, Output, OutputCollection, Paragraph, ParagraphCollection, Param, ParamCollection, Pre, PreCollection, Progress, ProgressCollection, Quote, QuoteCollection, Radio, RadioCollection, Script, ScriptCollection, Select, SelectCollection, Source, SourceCollection, Span, SpanCollection, Style, StyleCollection, Table, TableCaption, TableCaptionCollection, TableCell, TableCellCollection, TableCol, TableColCollection, TableCollection, TableDataCell, TableDataCellCollection, TableHeaderCell, TableHeaderCellCollection, TableRow, TableRowCollection, TableRowLocator, TableSection, TableSectionCollection, TextArea, TextAreaCollection, TextField, TextFieldCollection, TextFieldLocator, Time, TimeCollection, Title, TitleCollection, Track, TrackCollection, UList, UListCollection, Unknown, UnknownCollection, Video, VideoCollection, WhenPresentDecorator, Window

Class Method Summary collapse

Class Method Details

.element_class_for(tag_name) ⇒ Object



24
25
26
# File 'lib/watir-webdriver.rb', line 24

def element_class_for(tag_name)
  tag_to_class[tag_name.to_sym] || HTMLElement
end

.tag_to_classObject



20
21
22
# File 'lib/watir-webdriver.rb', line 20

def tag_to_class
  @tag_to_class ||= {}
end