문제

I use RoR with cucumber and capybara for tests.

I get strange error whent trying to make right click with capybara:

undefined method `right_click' for #<Capybara::Node::Element:0x0000000930c628> (NoMethodError)

But that class simply should have right_click method, see http://rubydoc.info/github/jnicklas/capybara/master/Capybara/Node/Element#right_click-instance_method

This is the source code

find('a', :text => @name).right_click

If I do some mistake, how to simulate right mouse click properly?

도움이 되었습니까?

해결책

This method is in master only. Neither of released Capybara versions support it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top