Драйвер Capybara Selenium не будет нажимать на кнопки в формате JQuery Mobile.Он думает, что кнопка не видна.
Кто-нибудь видел эту проблему и обошел ее?
Я создал приложение "greenfield", демонстрирующее эту проблему здесь: https://github.com/jevy/JQuery_Mobile_Capybara
@javascript
Scenario: Clicking a button doesn't complain # features/click_jq_mobile_button.feature:7
Given I am on the home page # features/step_definitions/web_steps.rb:44
Given I press "Some Button" # features/step_definitions/web_steps.rb:52
Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError)
[remote server] resource://fxdriver/modules/atoms.js:9442:in `unknown'
[remote server] file:///var/folders/fG/fGiEX6gLHQyvWGWb-5MpfU+++TI/-Tmp-/webdriver-profile20110525-21904-h3s00b/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:256:in `unknown'
[remote server] file:///var/folders/fG/fGiEX6gLHQyvWGWb-5MpfU+++TI/-Tmp-/webdriver-profile20110525-21904-h3s00b/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:305:in `unknown'
[remote server] file:///var/folders/fG/fGiEX6gLHQyvWGWb-5MpfU+++TI/-Tmp-/webdriver-profile20110525-21904-h3s00b/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:320:in `unknown'
[remote server] file:///var/folders/fG/fGiEX6gLHQyvWGWb-5MpfU+++TI/-Tmp-/webdriver-profile20110525-21904-h3s00b/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:197:in `unknown'
(eval):2:in `send'
(eval):2:in `click_button'
./features/step_definitions/web_steps.rb:53:in `/^(?:|I )press "([^"]*)"$/'
features/click_jq_mobile_button.feature:9:in `Given I press "Some Button"'
Failing Scenarios:
cucumber features/click_jq_mobile_button.feature:7 # Scenario: Clicking a button doesn't complain