module Watir

Autogenerated from HTML specification. Edits may be lost.

Autogenerated from SVG specification. Edits may be lost.

Constants

VERSION

Public Class Methods

always_locate=(bool) click to toggle source

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

# File lib/watir-webdriver.rb, line 30
def always_locate=(bool)
  @always_locate = bool
end
always_locate?() click to toggle source
# File lib/watir-webdriver.rb, line 21
def always_locate?
  @always_locate
end
default_timeout() click to toggle source
# File lib/watir-webdriver.rb, line 34
def default_timeout
  @default_timeout ||= 30
end
default_timeout=(value) click to toggle source

Default wait time for wait methods.

# File lib/watir-webdriver.rb, line 42
def default_timeout=(value)
  @default_timeout = value
end
element_class_for(tag_name) click to toggle source

@api private

# File lib/watir-webdriver.rb, line 84
def element_class_for(tag_name)
  tag_to_class[tag_name.to_sym] || HTMLElement
end
locator_namespace() click to toggle source
# File lib/watir-webdriver.rb, line 59
def locator_namespace
  @locator_namespace ||= Watir::Locators
end
locator_namespace=(mod) click to toggle source

Whether the locators should be used from a different namespace. Defaults to Watir::Locators.

# File lib/watir-webdriver.rb, line 68
def locator_namespace=(mod)
  @locator_namespace = mod
end
prefer_css=(bool) click to toggle source

Whether or not Watir should prefer CSS when translating the Watir selectors to WebDriver. Defaults to false.

# File lib/watir-webdriver.rb, line 55
def prefer_css=(bool)
  @prefer_css = bool
end
prefer_css?() click to toggle source
# File lib/watir-webdriver.rb, line 46
def prefer_css?
  @prefer_css
end
tag_to_class() click to toggle source

@api private

# File lib/watir-webdriver.rb, line 76
def tag_to_class
  @tag_to_class ||= {}
end