Module: Watir

Defined in:
lib/watir/logger.rb,
lib/watir/wait.rb,
lib/watir/alert.rb,
lib/watir/scroll.rb,
lib/watir/window.rb,
lib/watir/aliases.rb,
lib/watir/browser.rb,
lib/watir/cookies.rb,
lib/watir/version.rb,
lib/watir/adjacent.rb,
lib/watir/locators.rb,
lib/watir/container.rb,
lib/watir/exception.rb,
lib/watir/radio_set.rb,
lib/watir/has_window.rb,
lib/watir/navigation.rb,
lib/watir/screenshot.rb,
lib/watir/wait/timer.rb,
lib/watir/after_hooks.rb,
lib/watir/http_client.rb,
lib/watir/js_snippets.rb,
lib/watir/shadow_root.rb,
lib/watir/capabilities.rb,
lib/watir/elements/row.rb,
lib/watir/js_execution.rb,
lib/watir/elements/cell.rb,
lib/watir/elements/font.rb,
lib/watir/elements/form.rb,
lib/watir/elements/link.rb,
lib/watir/elements/list.rb,
lib/watir/row_container.rb,
lib/watir/user_editable.rb,
lib/watir/cell_container.rb,
lib/watir/elements/dlist.rb,
lib/watir/elements/image.rb,
lib/watir/elements/input.rb,
lib/watir/elements/radio.rb,
lib/watir/elements/table.rb,
lib/watir/search_context.rb,
lib/watir/elements/button.rb,
lib/watir/elements/hidden.rb,
lib/watir/elements/iframe.rb,
lib/watir/elements/option.rb,
lib/watir/elements/select.rb,
lib/watir/attribute_helper.rb,
lib/watir/elements/element.rb,
lib/watir/elements/checkbox.rb,
lib/watir/window_collection.rb,
lib/watir/element_collection.rb,
lib/watir/elements/table_row.rb,
lib/watir/elements/text_area.rb,
lib/watir/elements/date_field.rb,
lib/watir/elements/file_field.rb,
lib/watir/elements/table_cell.rb,
lib/watir/elements/text_field.rb,
lib/watir/extensions/nokogiri.rb,
lib/watir/generator/base/util.rb,
lib/watir/elements/svg_elements.rb,
lib/watir/generator/svg/visitor.rb,
lib/watir/elements/html_elements.rb,
lib/watir/elements/table_section.rb,
lib/watir/generator/base/visitor.rb,
lib/watir/generator/html/visitor.rb,
lib/watir/generator/svg/generator.rb,
lib/watir/locators/button/matcher.rb,
lib/watir/locators/option/matcher.rb,
lib/watir/elements/date_time_field.rb,
lib/watir/generator/base/generator.rb,
lib/watir/generator/html/generator.rb,
lib/watir/locators/element/locator.rb,
lib/watir/locators/element/matcher.rb,
lib/watir/generator/base/idl_sorter.rb,
lib/watir/locators/text_field/matcher.rb,
lib/watir/generator/svg/spec_extractor.rb,
lib/watir/generator/base/spec_extractor.rb,
lib/watir/generator/html/spec_extractor.rb,
lib/watir/locators/row/selector_builder.rb,
lib/watir/locators/cell/selector_builder.rb,
lib/watir/locators/anchor/selector_builder.rb,
lib/watir/locators/button/selector_builder.rb,
lib/watir/locators/option/selector_builder.rb,
lib/watir/locators/element/selector_builder.rb,
lib/watir/locators/row/selector_builder/xpath.rb,
lib/watir/locators/text_area/selector_builder.rb,
lib/watir/locators/cell/selector_builder/xpath.rb,
lib/watir/locators/text_field/selector_builder.rb,
lib/watir/locators/button/selector_builder/xpath.rb,
lib/watir/locators/option/selector_builder/xpath.rb,
lib/watir/locators/element/selector_builder/xpath.rb,
lib/watir/locators/text_area/selector_builder/xpath.rb,
lib/watir/locators/text_field/selector_builder/xpath.rb,
lib/watir/locators/element/selector_builder/xpath_support.rb,
lib/watir/locators/element/selector_builder/regexp_disassembler.rb,
lib/watir.rb

Overview

Autogenerated from HTML specification. Edits may be lost.

Defined Under Namespace

Modules: Adjacent, AttributeHelper, CellContainer, Container, Exception, Generator, HasWindow, JSExecution, JSSnippets, List, Locators, Navigation, RowContainer, Scrolling, SearchContext, UserEditable, Wait, Waitable Classes: AfterHooks, Alert, Anchor, AnchorCollection, Applet, AppletCollection, Area, AreaCollection, Audio, AudioCollection, BR, BRCollection, Base, BaseCollection, Body, BodyCollection, Browser, Button, ButtonCollection, Canvas, CanvasCollection, Capabilities, Cell, CellCollection, CheckBox, CheckBoxCollection, Circle, CircleCollection, Cookies, DList, DListCollection, Data, DataCollection, DataList, DataListCollection, DateField, DateFieldCollection, DateTimeField, DateTimeFieldCollection, Defs, DefsCollection, Desc, DescCollection, Details, DetailsCollection, Dialog, DialogCollection, Directory, DirectoryCollection, Div, DivCollection, Element, ElementCollection, Ellipse, EllipseCollection, Embed, EmbedCollection, FieldSet, FieldSetCollection, FileField, FileFieldCollection, Font, FontCollection, ForeignObject, ForeignObjectCollection, Form, FormCollection, Frame, FrameCollection, FrameSet, FrameSetCollection, FramedDriver, G, GCollection, Geometry, GeometryCollection, Gradient, GradientCollection, Graphics, GraphicsCollection, HR, HRCollection, HTMLElement, HTMLElementCollection, Head, HeadCollection, Heading, HeadingCollection, Hidden, HiddenCollection, Html, HtmlCollection, HttpClient, IFrame, IFrameCollection, Image, ImageCollection, Input, InputCollection, LI, LICollection, Label, LabelCollection, Legend, LegendCollection, Line, LineCollection, LinearGradient, LinearGradientCollection, Logger, Map, MapCollection, Marker, MarkerCollection, Marquee, MarqueeCollection, Media, MediaCollection, Meta, MetaCollection, Metadata, MetadataCollection, Meter, MeterCollection, Mod, ModCollection, OList, OListCollection, Object, ObjectCollection, OptGroup, OptGroupCollection, Option, OptionCollection, Output, OutputCollection, Paragraph, ParagraphCollection, Param, ParamCollection, Path, PathCollection, Pattern, PatternCollection, Picture, PictureCollection, Polygon, PolygonCollection, Polyline, PolylineCollection, Pre, PreCollection, Progress, ProgressCollection, Quote, QuoteCollection, RadialGradient, RadialGradientCollection, Radio, RadioCollection, RadioSet, Rect, RectCollection, Row, RowCollection, SVG, SVGCollection, SVGElement, SVGElementCollection, Screenshot, Script, ScriptCollection, Scroll, Select, SelectCollection, ShadowRoot, Source, SourceCollection, Span, SpanCollection, Stop, StopCollection, Style, StyleCollection, Switch, SwitchCollection, Symbol, SymbolCollection, TSpan, TSpanCollection, Table, TableCaption, TableCaptionCollection, TableCell, TableCellCollection, TableCol, TableColCollection, TableCollection, TableDataCell, TableDataCellCollection, TableHeaderCell, TableHeaderCellCollection, TableRow, TableRowCollection, TableSection, TableSectionCollection, Template, TemplateCollection, TextArea, TextAreaCollection, TextContent, TextContentCollection, TextField, TextFieldCollection, TextPath, TextPathCollection, TextPositioning, TextPositioningCollection, Time, TimeCollection, Title, TitleCollection, Track, TrackCollection, UList, UListCollection, Unknown, UnknownCollection, Use, UseCollection, Video, VideoCollection, View, ViewCollection, Window, WindowCollection

Constant Summary collapse

VERSION =
'7.3.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.default_timeoutObject

Default wait time for wait methods.



37
38
39
# File 'lib/watir.rb', line 37

def default_timeout
  @default_timeout ||= 30
end

Class Method Details

.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.



53
54
55
# File 'lib/watir.rb', line 53

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

.loggerLogger

Returns logger instance that can be used across the whole Selenium.

Returns:



64
65
66
# File 'lib/watir.rb', line 64

def self.logger
  @logger ||= Logger.new
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.



45
46
47
# File 'lib/watir.rb', line 45

def tag_to_class
  @tag_to_class ||= {}
end