From: Angrez Date: 2008-01-29T14:34:56+09:00 Subject: Re: FireWatir in class, link doesn't work. Hi, Can you try getting the latest code from SVN and see it that works? Because as far as I know link does work using URL and regular expression. See unit tests for more detail. - Angrez On Jan 24, 2:23 pm, Flaming Flamingo wrote: > The links on the website are very big. I use the regexp. /_groupid_ITEM/ > to get to the link without having to type the whole link in the code > (groupid_ITEM only appears in one link). And, in the link there are some > items (countrycodes for example) that change with the settings of the > website. > > When debugging the code, I did use the whole link, something like this: > self.link(:url, > 'http://veryverybiglink_nl_nl_website_groupid_ITEM.html') > But this also didn't work... > > _groupid_ITEM will eventually change into a variable, but first it has > to work at all :-) > > thanks for thinking along... > > Angrez wrote: > > Hi, > > > Your code for function is like this: > >> def clicklink(gui,window,link) > >> #gui, window, link come later.... > >> puts "clicklink" > >> self.link(:url, /_groupid_ITEM/) > >> puts "end clicklink" > >> end > > > But you are not using variable link anywhere? what is use of / > > _groupid_ITEM/? I think I am missing something obvious over here. > > > - Angrez > > -- > Posted viahttp://www.ruby-forum.com/.