Sha256: 4c8ff9877a63bbcafe3a3e76cad1ddb9abc7b97385f24d5b386503189d2e4187
Contents?: true
Size: 499 Bytes
Versions: 19
Compression:
Stored size: 499 Bytes
Contents
module TestCentricity class AppSwitch < AppUIElement def initialize(name, parent, locator, context) super @type = :switch end def on? obj = element object_not_found_exception(obj) obj.get_value == 1 end def on obj = element object_not_found_exception(obj) obj.click unless obj.get_value == 1 end def off obj = element object_not_found_exception(obj) obj.click if obj.get_value == 1 end end end
Version data entries
19 entries across 19 versions & 1 rubygems