Sha256: 622b3aab23d13200bad9fc97fa434e034e108eb64299af0abfee0cb9e87139b9

Contents?: true

Size: 264 Bytes

Versions: 2

Compression:

Stored size: 264 Bytes

Contents

Given /^I choose "([^"]*)" in the autocomplete list$/ do |text|
  page.execute_script %Q{ $('input[data-autocomplete]').trigger("keydown") }
  sleep 1
  page.execute_script %Q{ $('.ui-menu-item a:contains("#{text}")').trigger("mouseenter").trigger("click"); }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails3-jquery-autocomplete-0.3.5 lib/cucumber/autocomplete.rb
rails3-jquery-autocomplete-0.3.4 lib/cucumber/autocomplete.rb