Displaying 2 results from an estimated 2 matches for "clicks_link".
Did you mean:
click_link
2010 Dec 20
1
Check whether link present nor not using cucumber
...t;password", :with=>password
click_button "Log in"
# File.open("response.html", ''w'') {|f| f.write( response.body) }
# response.should contain("Logged in successfully")
end
Then /^"([^"]*)" link should be shown$/ do |arg1|
clicks_link user_list_path
#pending # express the regexp above with the code you wish you had
end
My problem is 2nd step:-
Could not find link with text or title or id "/user-list"
(Webrat::NotFoundError)
features/admin.feature:5:in `Then "Users" link should be shown''
Failing S...
2007 Nov 29
5
Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications
..., and
that may make it a requirement for your project. If JavaScript is not central
to your application, Webrat is a simpler, effective solution that will let you
run your tests much faster and more frequently. (Benchmarks forthcoming.)
== SYNOPSIS:
def test_sign_up
visits "/"
clicks_link "Sign up"
fills_in "Email", :with => "good at example.com"
select "Free account"
clicks_button "Register"
...
end
Behind the scenes, this will perform the following work:
1. Verify that loading the home page is successful
2. V...