From: Angrez Date: 2008-01-24T13:59:59+09:00 Subject: Re: FireWatir in class, link doesn't work. Hi, Can you provide with the error message that you are using? Also you are passing URL as a string, but while using in the code you are using it as regexp. Not sure but that could be a problem. Can you please post some values/exact code that you are using? Regards, Angrez On Jan 23, 6:00 pm, Flaming Flamingo wrote: > Hi All, > In the code below I'm making a first try to make a class with > FireWatir/firefox. > Now, the problem is, the clicklink doesn't work, I do get the puts's but > with the self.link there is no action(and the link does exist)... The > startup() does work. > > Can anyone help me? > > class CLBrowserFF > def startup() > puts "startup" > self.goto('http://website.com') > puts "end startup" > end > > def clicklink(gui,window,link) > #gui, window, link come later.... > puts "clicklink" > self.link(:url, /_groupid_ITEM/) > puts "end clicklink" > end > > end > > browser = CLBrowserFF.new > browser.startup() > #gui, window, link come later.... > browser.clicklink('gui','window','link') > -- > Posted viahttp://www.ruby-forum.com/.