Skip to content

JQuery UI 'Combobox' not supported #98

Closed
lunks opened this Issue Jul 4, 2011 · 7 comments

6 participants

@lunks
lunks commented Jul 4, 2011

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
plentz commented Jul 5, 2011

+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
plentz commented Oct 24, 2011

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
thoughtbot, inc. member
jferris commented Jul 11, 2012

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

@calleerlandsson
thoughtbot, inc. member

Can someone confirm if this is still an issue in the latest version of capybara-webkit?

Could this be related or a duplicate of #50?

@calleerlandsson
thoughtbot, inc. member

I'll close this issue due to inactivity. Please re-open it if you're still experiencing these issues.

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.