Module: Watir

Defined in:
lib/watir-webdriver/elements/generated.rb,
lib/watir-webdriver.rb,
lib/watir-webdriver/wait.rb,
lib/watir-webdriver/atoms.rb,
lib/watir-webdriver/window.rb,
lib/watir-webdriver/aliases.rb,
lib/watir-webdriver/browser.rb,
lib/watir-webdriver/cookies.rb,
lib/watir-webdriver/version.rb,
lib/watir-webdriver/container.rb,
lib/watir-webdriver/exception.rb,
lib/watir-webdriver/html/util.rb,
lib/watir-webdriver/has_window.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/row_container.rb,
lib/watir-webdriver/user_editable.rb,
lib/watir-webdriver/xpath_support.rb,
lib/watir-webdriver/cell_container.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/html/idl_sorter.rb,
lib/watir-webdriver/attribute_helper.rb,
lib/watir-webdriver/elements/element.rb,
lib/watir-webdriver/elements/checkbox.rb,
lib/watir-webdriver/extensions/alerts.rb,
lib/watir-webdriver/element_collection.rb,
lib/watir-webdriver/elements/table_row.rb,
lib/watir-webdriver/elements/text_area.rb,
lib/watir-webdriver/elements/file_field.rb,
lib/watir-webdriver/elements/table_cell.rb,
lib/watir-webdriver/elements/text_field.rb,
lib/watir-webdriver/extensions/nokogiri.rb,
lib/watir-webdriver/html/spec_extractor.rb,
lib/watir-webdriver/elements/table_section.rb,
lib/watir-webdriver/extensions/select_text.rb,
lib/watir-webdriver/locators/button_locator.rb,
lib/watir-webdriver/locators/element_locator.rb,
lib/watir-webdriver/locators/child_row_locator.rb,
lib/watir-webdriver/locators/child_cell_locator.rb,
lib/watir-webdriver/locators/text_field_locator.rb

Overview

Autogenerated from the HTML5 specification. Edits may be lost.

Defined Under Namespace

Modules: AlertHelper, Atoms, AttributeHelper, CellContainer, Container, EventuallyPresent, Exception, HTML, HasWindow, RowContainer, UserEditable, Wait, Waitable, 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, ChildCellLocator, ChildRowLocator, Command, CommandCollection, Cookies, DList, DListCollection, Data, DataCollection, DataList, DataListCollection, Details, DetailsCollection, Directory, DirectoryCollection, Div, DivCollection, Element, ElementCollection, ElementLocator, Embed, EmbedCollection, FieldSet, FieldSetCollection, FileField, FileFieldCollection, Font, FontCollection, Form, FormCollection, Frame, FrameCollection, FrameSet, FrameSetCollection, FramedDriver, 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, TableSection, TableSectionCollection, TextArea, TextAreaCollection, TextField, TextFieldCollection, TextFieldLocator, Time, TimeCollection, Title, TitleCollection, Track, TrackCollection, UList, UListCollection, Unknown, UnknownCollection, Video, VideoCollection, WhenPresentDecorator, Window

Constant Summary collapse

VERSION =
"0.5.3"

Class Method Summary collapse

Class Method Details

.always_locate=(bool) ⇒ Object

Whether or not Watir should cache element references or always re-locate an Element on use. Defaults to true.



33
34
35
# File 'lib/watir-webdriver.rb', line 33

def always_locate=(bool)
  @always_locate = bool
end

.always_locate?Boolean

Returns:

  • (Boolean)


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

def always_locate?
  @always_locate
end

.element_class_for(tag_name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



49
50
51
# File 'lib/watir-webdriver.rb', line 49

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

.tag_to_classObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



41
42
43
# File 'lib/watir-webdriver.rb', line 41

def tag_to_class
  @tag_to_class ||= {}
end