का उपयोग करने जा रहा यह ककड़ी कदम परिभाषाओं कि सेलेनियम के साथ काम किया है, लेकिन मैं NotImplementedError
मिल जब मैं उन्हें poltergeist ड्राइवर के साथ प्रयास करें।NotImplementedError जब Poltergeist
phantom.js स्थापित है और मैं अपनी सही परिभाषाओं से स्क्रीनशॉट भी ले सकता हूं जो सही दिखते हैं। मैं एक एम्बर.जेएस/रेल एप्लिकेशन का परीक्षण कर रहा हूं। देखें कि यह पृष्ठ को सही तरीके से देखता है लेकिन फिर जब मैं एक लिंक खोजने का प्रयास करता हूं तो यह विफल हो जाता है।
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
सटीक त्रुटि यह है:
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"'
बढ़िया! जो इसे हल करता है – joscas
आप कैपिबरा 2.1 के साथ काम करने के लिए पोल्टरगेस्ट की मास्टर शाखा का भी उपयोग कर सकते हैं। आपके रत्न में: मणि 'poltergeist', github: 'jonleighton/poltergeist' – ryanjones
poltergeist (1.2.0) बाहर है यह capybara (2.1.0) के साथ अच्छी तरह से काम करता है – bonyiii