Module: Celerity

Defined in:
lib/celerity.rb,
lib/celerity/util.rb,
lib/celerity/browser.rb,
lib/celerity/element.rb,
lib/celerity/htmlunit.rb,
lib/celerity/listener.rb,
lib/celerity/container.rb,
lib/celerity/exception.rb,
lib/celerity/identifier.rb,
lib/celerity/collections.rb,
lib/celerity/elements/form.rb,
lib/celerity/elements/link.rb,
lib/celerity/elements/meta.rb,
lib/celerity/input_element.rb,
lib/celerity/short_inspect.rb,
lib/celerity/xpath_support.rb,
lib/celerity/default_viewer.rb,
lib/celerity/elements/frame.rb,
lib/celerity/elements/image.rb,
lib/celerity/elements/label.rb,
lib/celerity/elements/table.rb,
lib/celerity/element_locator.rb,
lib/celerity/elements/button.rb,
lib/celerity/elements/option.rb,
lib/celerity/disabled_element.rb,
lib/celerity/clickable_element.rb,
lib/celerity/viewer_connection.rb,
lib/celerity/element_collection.rb,
lib/celerity/elements/table_row.rb,
lib/celerity/elements/file_field.rb,
lib/celerity/elements/table_cell.rb,
lib/celerity/elements/text_field.rb,
lib/celerity/watir_compatibility.rb,
lib/celerity/elements/radio_check.rb,
lib/celerity/elements/select_list.rb,
lib/celerity/elements/table_elements.rb,
lib/celerity/ignoring_web_connection.rb,
lib/celerity/elements/non_control_elements.rb

Defined Under Namespace

Modules: ClickableElement, Container, DisabledElement, Exception, JsxHelper, ShortInspect, Util, XpathSupport Classes: Area, Areas, Browser, Button, Buttons, CheckBox, CheckBoxes, Dd, Dds, DefaultViewer, Div, Divs, Dl, Dls, Dt, Dts, Element, ElementCollection, ElementLocator, Em, Ems, FileField, FileFields, Form, Forms, Frame, Frames, H1, H1s, H2, H2s, H3, H3s, H4, H4s, H5, H5s, H6, H6s, Hidden, Hiddens, Identifier, IgnoringWebConnection, Image, Images, InputElement, Label, Labels, Li, Link, Links, Lis, Listener, Map, Maps, Meta, Metas, NonControlElement, Ol, Ols, Option, Options, P, Pre, Pres, Ps, Radio, RadioCheckCommon, Radios, SelectList, SelectLists, Span, Spans, Strong, Strongs, Table, TableBodies, TableBody, TableCell, TableCells, TableElement, TableFooter, TableFooters, TableHeader, TableHeaders, TableRow, TableRows, Tables, TextField, TextFields, Th, Ul, Uls, ViewerConnection

Constant Summary collapse

VERSION =
"0.0.6.17"
Log =
Logger.new($DEBUG ? $stderr : nil)
DIR =
File.expand_path(File.dirname(__FILE__) + "/celerity")
Jars =
Dir[File.dirname(__FILE__) + '/htmlunit/*.jar']
IE =
Celerity::Browser

Class Attribute Summary collapse

Class Attribute Details

.index_offsetObject

This index_offset attribute controls the indexing used when locating elements by :index or fetching from Celerity::ElementCollections.

By default it is set to 1 for Watir compatibility, but users who use Celerity exlusively may want it set to 0 to make Celerity more consistent with Ruby.



31
32
33
# File 'lib/celerity.rb', line 31

def index_offset
  @index_offset
end