I am trying to test an inplace editor using Cucumber/Capybara/Selenium stack, but my problem is that the editor is activated by clicking a div and not a link or button. I can not seem to figure out how to get Capybara to do this. Is there a way of doing this?
I am trying to test an inplace editor using Cucumber/Capybara/Selenium stack, but my problem
Share
You can click on an element via
Capybara::Element.click. I add the following for this in myweb_steps.rbto click on divs.There is also
Element.trigger('mouseover')which appears to enable hover albeit not working with Selenium.It is also very likely you will need to decorate your feature/scenario with Capybara’s provided
@javascripttag.