WOW, just found out image within <a/> tag (see below):
1 2 3
| <a class="image" href="..."> <img src="..." alt="Back"/> </a>
|
Actually work for the following pair of:
1 2
| # Step Given I follow "Back"
|
&:
1 2 3 4
| # Step definition Given /^I follow "([^\"]+)"$/ do |link| click_link(link) # plain vanilla webrat end
|
Cool !!
No comments:
Post a Comment