ho questo cetriolo definizioni passo che lavorano con selenio ma ottengo NotImplementedError
quando li provo con il driver poltergeist.NotImplementedError quando si passa a Poltergeist
phantom.js è installato e posso persino scattare screenshot dalle definizioni dei passaggi che sembrano giuste. Sto testando un'applicazione Ember.js/Rails. Vedi che visita correttamente la pagina ma poi fallisce quando provo a trovare un link.
When(/^I visit the App$/) do
visit("/")
end
Then(/^I should see link "(.*?)"$/) do |arg1|
find_link(arg1)
end
When(/^I click "(.*?)"$/) do |arg1|
find_link(arg1).click
end
When(/^I fill in "(.*?)" with "(.*?)"$/) do |arg1, arg2|
fill_in arg1, :with => arg2
end
When(/^I click "(.*?)" button$/) do |arg1|
find_button(arg1).click
end
L'errore esatto è questo:
When I visit the App # features/step_definitions/sign_in_steps.rb:1
Then I should see link "Sign Up" # features/step_definitions/sign_in_steps.rb:5
NotImplementedError (NotImplementedError)
./features/step_definitions/sign_in_steps.rb:6:in `/^I should see link "(.*?)"$/'
features/sign_in.feature:9:in `Then I should see link "Sign Up"'
Grande! questo lo risolve – joscas
Puoi anche usare il ramo master di poltergeist per lavorare con Capybara 2.1. Nel tuo file gemma: gemma 'poltergeist', github: 'jonleighton/poltergeist' – ryanjones
poltergeist (1.2.0) è fuori funziona bene con capybara (2.1.0) – bonyiii