I'm writing cucumber tests for a website, and I've gotten completely stuck on this one. On the website's checkout procedure, there is a button that triggers a slidedown into the next part of the checkout procedure (on the same page). The button is defined in jQuery as follows:
There are several others like this, and when you inspect element on the site, the HTML shown is as follows:
< img id="next1" src="/images/next.png" style="float:right;" >
I've tried to write steps that click inside elements. For example:
When /^I click "([^"]*)" inside element "([^"]*)"$/ do |button, element_name|
However, nothing that I've tried seems to work. Does anyone have any advice?