F
Flaming Flamingo
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<FireWatir::Firefox
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.linkurl, /_groupid_ITEM/)
puts "end clicklink"
end
end
browser = CLBrowserFF.new
browser.startup()
#gui, window, link come later....
browser.clicklink('gui','window','link')
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<FireWatir::Firefox
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.linkurl, /_groupid_ITEM/)
puts "end clicklink"
end
end
browser = CLBrowserFF.new
browser.startup()
#gui, window, link come later....
browser.clicklink('gui','window','link')