Sha256: 23cb4a7273cd2019efb82a274e707b6512b2d27d8deb2fdbe6a880b51ed14def

Contents?: true

Size: 339 Bytes

Versions: 49

Compression:

Stored size: 339 Bytes

Contents

Given /^I choose "([^"]*)" in the autocomplete list$/ do |text|
  page.execute_script %Q{ $('input[data-autocomplete]').trigger("focus") }
  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

49 entries across 49 versions & 5 rubygems

Version Path
rails-jquery-autocomplete-1.0.5 lib/cucumber/autocomplete.rb
rails-jquery-autocomplete-1.0.4 lib/cucumber/autocomplete.rb
rails-autocomplete-2.0.1 lib/cucumber/autocomplete.rb
rails-autocomplete-2.0.0 lib/cucumber/autocomplete.rb
rails-autocomplete-1.1.0 lib/cucumber/autocomplete.rb
autocomplete-activeadmin-0.1.0 lib/cucumber/autocomplete.rb
rails-jquery-autocomplete-1.0.3 lib/cucumber/autocomplete.rb
rails-jquery-autocomplete-1.0.2 lib/cucumber/autocomplete.rb
rails-jquery-autocomplete-1.0.1 lib/cucumber/autocomplete.rb
rails-jquery-autocomplete-1.0.0 lib/cucumber/autocomplete.rb
rails3-jquery-autocomplete-1.0.15 lib/cucumber/autocomplete.rb
rails4-autocomplete-1.1.1 lib/cucumber/autocomplete.rb
rails4-autocomplete-1.1.0 lib/cucumber/autocomplete.rb
rails3-jquery-autocomplete-1.0.14 lib/cucumber/autocomplete.rb
rails3-jquery-autocomplete-1.0.13 lib/cucumber/autocomplete.rb
rails3-jquery-autocomplete-1.0.12 lib/cucumber/autocomplete.rb
rails4-autocomplete-1.0.7 lib/cucumber/autocomplete.rb
rails3-jquery-autocomplete-1.0.11 lib/cucumber/autocomplete.rb
rails3-jquery-autocomplete-1.0.10 lib/cucumber/autocomplete.rb
rails3-jquery-autocomplete-1.0.9 lib/cucumber/autocomplete.rb