Testing jQuery autocomplete with Capybara

Posted Over 12 years ago. Visible to the public.
  page.execute_script %Q{ $('"#{location}"').val('"#{text}"').keydown(); }
  sleep(3)
  page.execute_script %Q{ $('.ui-menu-item a:contains("#{target}")').trigger('mouseenter').click(); }
  page.should have_field(localtion, :with => completed_text)
Wiseman
Posted by Wiseman to Wiseman's Cards (2011-12-15 08:43)