Sha256: ebe0f035215a8dc9e32877f0458e506e2997f123d2a2aa63a354a54199b78cd3
Contents?: true
Size: 624 Bytes
Versions: 1
Compression:
Stored size: 624 Bytes
Contents
require File.dirname(__FILE__) + '/element' # Basic Checkbox object. # Subclass of Element. class Checkbox_GWT < Element # Verifies if value of checkbox is checked or uncheck, then procedes to check/ # uncheck object, like user clicks on checkbox. def click @selenium.click(@locator) begin @selenium.wait_for_condition('selenium.browserbot.getCurrentWindow().jQuery.active == 0', 10000) rescue => e #continue sleep(4) end sleep(3) end # returns current value of object. def value return @selenium.is_checked(@locator) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
selenium-rspec-dsl-1.0.2 | sites/checkboxGwt.rb |