Module: Watir
- Defined in:
- lib/watir-webdriver/elements/generated.rb,
lib/watir-webdriver.rb,
lib/watir-webdriver/wait.rb,
lib/watir-webdriver/alert.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/screenshot.rb,
lib/watir-webdriver/wait/timer.rb,
lib/watir-webdriver/html/visitor.rb,
lib/watir-webdriver/elements/area.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/dlist.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/iframe.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/text_area_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: Alert, Anchor, AnchorCollection, Applet, AppletCollection, Area, AreaCollection, Audio, AudioCollection, BR, BRCollection, Base, BaseCollection, Body, BodyCollection, Browser, Button, ButtonCollection, ButtonLocator, Canvas, CanvasCollection, CheckBox, CheckBoxCollection, ChildCellLocator, ChildRowLocator, Cookies, DList, DListCollection, Data, DataCollection, DataList, DataListCollection, Details, DetailsCollection, Dialog, DialogCollection, 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, MenuItem, MenuItemCollection, 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, Screenshot, 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, Template, TemplateCollection, TextArea, TextAreaCollection, TextAreaLocator, TextField, TextFieldCollection, TextFieldLocator, Time, TimeCollection, Title, TitleCollection, Track, TrackCollection, UList, UListCollection, Unknown, UnknownCollection, Video, VideoCollection, WhenPresentDecorator, Window
Constant Summary collapse
- VERSION =
"0.6.11"
Class Method Summary collapse
-
.always_locate=(bool) ⇒ Object
Whether or not Watir should cache element references or always re-locate an Element on use.
- .always_locate? ⇒ Boolean
- .default_timeout ⇒ Object
-
.default_timeout=(value) ⇒ Object
Default wait time for wait methods.
- .element_class_for(tag_name) ⇒ Object private
-
.prefer_css=(bool) ⇒ Object
Whether or not Watir should prefer CSS when translating the Watir selectors to WebDriver.
- .prefer_css? ⇒ Boolean
- .tag_to_class ⇒ Object private
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.
36 37 38 |
# File 'lib/watir-webdriver.rb', line 36 def always_locate=(bool) @always_locate = bool end |
.always_locate? ⇒ Boolean
27 28 29 |
# File 'lib/watir-webdriver.rb', line 27 def always_locate? @always_locate end |
.default_timeout ⇒ Object
40 41 42 |
# File 'lib/watir-webdriver.rb', line 40 def default_timeout @default_timeout ||= 30 end |
.default_timeout=(value) ⇒ Object
Default wait time for wait methods.
48 49 50 |
# File 'lib/watir-webdriver.rb', line 48 def default_timeout=(value) @default_timeout = value 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.
77 78 79 |
# File 'lib/watir-webdriver.rb', line 77 def element_class_for(tag_name) tag_to_class[tag_name.to_sym] || HTMLElement end |
.prefer_css=(bool) ⇒ Object
Whether or not Watir should prefer CSS when translating the Watir selectors to WebDriver. Defaults to false.
61 62 63 |
# File 'lib/watir-webdriver.rb', line 61 def prefer_css=(bool) @prefer_css = bool end |
.prefer_css? ⇒ Boolean
52 53 54 |
# File 'lib/watir-webdriver.rb', line 52 def prefer_css? @prefer_css end |
.tag_to_class ⇒ 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.
69 70 71 |
# File 'lib/watir-webdriver.rb', line 69 def tag_to_class @tag_to_class ||= {} end |