Hi, Another newbie question. I'm sort of confused as I often find instructions on the internet that don't work. Now I was looking for ways to click a link that can only be selected in a complex way using CSS selectors. I found an example within "#entry_2" do |scope| scope.click_link "Delete" end The article suggests this done using Webrat but when I try to use it the message is that 'within' does not exist. I am using Webrat right? I have this in env.rb require 'webrat' require 'webrat/core/matchers' Best Regards, Onno
on 2010-01-21 22:38
on 2010-01-22 06:13
On Thu, Jan 21, 2010 at 3:31 PM, Onno van der Straaten <onno.van.der.straaten@gmail.com> wrote: > scope.click_link "Delete" > end > > The article suggests this done using Webrat but when I try to use it the > message is that 'within' does not exist. I am using Webrat right? I have > this in env.rb Are you having this trouble with rspec or cucumber? If cucumber, please post to http://groups.google.com/group/cukes. If rspec, env.rb is not loaded by rspec, so that would need to go in a file that either holds your spec or is required by a spec file. HTH, David
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.