From: John W Higgins Date: 2009-06-12T11:05:32+09:00 Subject: Re: Firewatir question --001e680f185c834ba2046c1d2490 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Thu, Jun 11, 2009 at 2:21 PM, Axel Etzold wrote: > Dear all, > > I am trying to automate some javascript website using Firewatir. > I use the following code : > > > require 'rubygems' > require 'firewatir' > include FireWatir > test_site="http://konjugator.reverso.net/konjugation-englisch.html" > ff=Firefox.new > ff.goto(test_site) > ff.text_field(:name,"ctl00$txtVerb").set("go") > # everything is nice up to here, then I'd like to click the "Konjugieren" # > button, which fails > ff.button(:title,"Konjugieren").click > ff.close > > If you look at the source for your test page it's not a button but an element that you are looking to click. Using this as a reference http://wiki.openqa.org/display/WTR/HTML+Tags+and+Watir+Methods you can find that for an element you use the link method. So all you need to do is change button to link and you should be in business. John --001e680f185c834ba2046c1d2490--