Module: Watir

Includes:
Exception
Included in:
Locator
Defined in:
lib/watir/camel_case.rb,
lib/watir/form.rb,
lib/watir/link.rb,
lib/watir/frame.rb,
lib/watir/image.rb,
lib/watir/table.rb,
lib/watir/win32.rb,
lib/watir/logger.rb,
lib/watir/module.rb,
lib/watir/element.rb,
lib/watir/locator.rb,
lib/watir/process.rb,
lib/watir/ie-class.rb,
lib/watir/close_all.rb,
lib/watir/container.rb,
lib/watir/ie-process.rb,
lib/watir/collections.rb,
lib/watir/html_element.rb,
lib/watir/modal_dialog.rb,
lib/watir/cookiemanager.rb,
lib/watir/input_elements.rb,
lib/watir/page-container.rb,
lib/watir/screen_capture.rb,
lib/watir/dialogs/file_field.rb,
lib/watir/dialogs/javascript.rb,
lib/watir/element_collections.rb,
lib/watir/non_control_elements.rb,
lib/watir/contrib/enabled_popup.rb,
lib/watir/contrib/ie-new-process.rb

Overview

This is a generic HTML Element that is used to locate all elements that share an attribute. The most common example would be finding elements that all share the same class.

Defined Under Namespace

Modules: Container, CookieManager, OptionAccess, PageContainer, Process, ScreenCapture, Win32 Classes: Button, CheckBox, CheckBoxes, DefaultLogger, Element, ElementCollections, ElementLocator, ElementMapper, FileField, Form, FormLocator, Forms, Frame, FrameLocator, Frames, HTMLElement, HTMLElements, Hidden, IE, Image, InputElement, InputElementCollections, InputElementLocator, Ins, Inses, JavascriptDialog, Label, Link, Locator, ModalDialog, NonControlElement, Option, OptionWrapper, Radio, RadioCheckCommon, SelectList, SelectLists, Table, TableBodies, TableBody, TableCell, TableRow, TaggedElementLocator, TextField, WatirLogger

Constant Summary collapse

@@dir =

Directory containing the watir.rb file

File.expand_path(File.dirname(__FILE__))

Class Method Summary collapse

Class Method Details

.until_with_timeoutObject

Like regular Ruby “until”, except that a Wait::TimeoutError is raised if the timeout is exceeded. Timeout is IE.attach_timeout.



9
10
11
# File 'lib/watir/module.rb', line 9

def self.until_with_timeout # block
  Wait.until(IE.attach_timeout) { yield }
end