Using page_objects gem, Cucumber and Watir-Webdriver. I have a link/button that I want to click on. In IRB I can click on it via the div as such:
b.div(:text, "Verify your membership").click
The HTML:
div class="verification-header button -gray -browse btn-verify" style="top: 0px;">
Verify your membership
</div>
In my page object I have:
div(:membership, :text => "Verify your membership")
And I call it as such:
membership
But the link/button isn't clicked. So the question is how to click a link/button that is a div?