I will revise my html file to make it more clear: <html> <head> <title>Title of page</title> </head> <body> This is my first homepage. <b>This text is bold</b> <a href="http://www.google.co.in">url</a> <a href="http://www.google.co.in">url</a> </body> </html>
To answer both of your question, a) I am using latest version of Watir 1.4.1 b) while trying to access using href also i get the same error: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:963:in `getLink': {:text=> "url", :index=>2} is an unknown way of finding a link ( ) (Watir::Exception::Mi ssingWayOfFindingObjectException) from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:2830:in `init ialize' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:570:in `new' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:570:in `link' from E:/PROVIS/sample.rb:16 _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general