Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

JQuery UI 'Combobox' not supported #98

Open
lunks opened this Issue · 5 comments

5 participants

@lunks

Using this example code: http://jqueryui.com/demos/autocomplete/#combobox

And this capybara helper:

  def autocomplete(locator, options = {})
    scope = "//label[text()='#{locator}']/parent::div"
    within :xpath, scope do
      text_input = find(:xpath, "input")
      text_input.set options[:with]
    end
    within 'li.ui-menu-item' do
      find('a').click
    end
  end

This raises an error stating it 'can't find an li.ui-menu-item'. This works on Webdriver.

You can use autocomplete as you would use capybara's fill_in.

@plentz

+1 (as long we don't have a "watch" button :)

@gregoriokusowski

Any thoughts?

@duelinmarkers

I'm currently struggling to get capybara-webkit to work with a jQuery autocomplete and wonder if it's the same issue.

@plentz

yup, it probably is, since combobox is under the "autocomplete umbrella"

http://jqueryui.com/demos/autocomplete/default.html
http://jqueryui.com/demos/autocomplete/combobox.html

@jferris
Admin

Can you guys try this again with the latest master? We released some fixes that may help suport jquery-ui better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.