タイトルに基づいてhtmlオブジェクトをクリックしたい
<a class="class_id" style="background: url("http://cdn.server.net/Img/openid/openid-logos.png?v=8") repeat scroll -1px -518px rgb(255, 255, 255);" href="javascript:openid.signin('google');" title="log in with Google"></a>
しかし、私のコードは機能しません
require 'rubygems'
require 'mechanize'
agent = Mechanize.new
page = agent.get('http://server.com/')
page = page.link_with(:text=>'log in').click
page = page.link_with(:title=>'log in with Google').click
それは返す(eval):14:in 'block (2 levels) in links_with': undefined method 'title' for #<Mechanize::Page::Link:0x1f6aeb0> (NoMethodError)
タイトルを使用してオブジェクトを見つけてクリックする方法はありますか?