<a href="/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB8QFjAA&url=http%3A%2F%2Fwatir.com%2F&ei=tobGU6_hA4ucyASJnYLgAg&usg=AFQjCNHFyN9neeAsRIQp3syn0TFOyhSP8Q&sig2=AXyDi_HaNjEix3Dg1Ifm9g&bvm=bv.71126742,d.aWw" onmousedown="return rwt(this,'','','','1','AFQjCNHFyN9neeAsRIQp3syn0TFOyhSP8Q','AXyDi_HaNjEix3Dg1Ifm9g','0CB8QFjAA','','',event)" data-href="*http://watir.com/*"><em>Watir</em>.com | <em>Web Application Testing in Ruby</em></a>
Perhaps its a data binding technique. Notice there is also a related mousedown event which is the target url. On Wednesday, July 16, 2014 8:33:17 AM UTC-5, Steven Yue wrote: > > Hi, guys > > I'm new to watir. I'm trying to use 'watir-webdriver' > > I did a simple test for google. It prints links in the list. The code is > like this: > > browser = Watir::Browser.new :chrome > > browser.goto 'https://www.google.com' > > browser.lis(:class => "g").each{|x| puts x.div.h3.a.href} > > > It will give me this list: > > http://watir.com/ > > http://watir.com/examples/ > > http://en.wikipedia.org/wiki/Watir > > > http://www.thoughtworks.com/insights/articles/automated-testing-using-ruby-and-watir > > http://watirwebdriver.com/ > > https://leanpub.com/watirbook > > https://github.com/watir/watir > > https://www.ruby-toolbox.com/gems/watir > > http://www.slideshare.net/timothyf/automated-testing-with-watir > > http://www.httpwatch.com/rubywatir/ > > > Which seems like already get parsed from the raw url. Because if I do > right click in the browser and do "Copy Link Address" by myself. I will get > address like this: " > https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB0QFjAA&url=http%3A%2F%2Fwatir.com%2F&ei=pnzGU8jyH5GYyATe3ILgDA&usg=AFQjCNHFyN9neeAsRIQp3syn0TFOyhSP8Q&bvm=bv.71126742,d.aWw > " > > Is it because watir parse it for me? Or is there something that I'm > missing? Where is this magic coming from? > > Thanks > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
