Sha256: 78d580c2dda014479ff41902e6d2208ecab39c68464aabb8cc48fc993a13bfb9
Contents?: true
Size: 570 Bytes
Versions: 1
Compression:
Stored size: 570 Bytes
Contents
class FillIN::JsSelect def initialize(label, value, within) @label = label @value = value @within = within || Capybara.current_session end def call input = FillIN::Input.new(@label, @value, @within).call locator, index = Locator::Index.execute(@value) locator, xpath = Locator::Equal.execute(locator) index ||= 1 Waiter.wait do input.find(:xpath, "./ancestor::*[#{xpath}][#{index}]/#{xpath}").click end Pickles.blur(input) Waiter.wait_for_ajax input end private attr_reader :label, :value end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pickles-0.2.0 | lib/cucumber/pickles/steps/fill_in/js_select.rb |