[wtr-general] href method does not give the 'right' url

2014-07-16 Thread Steven Yue
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

[wtr-general] Re: href method does not give the 'right' url

2014-07-16 Thread Super Kevy
a href=/url?sa=tamp;rct=jamp;q=amp;esrc=samp;source=webamp;cd=1amp;cad=rjaamp;uact=8amp;ved=0CB8QFjAAamp;url=http%3A%2F%2Fwatir.com%2Famp;ei=tobGU6_hA4ucyASJnYLgAgamp;usg=AFQjCNHFyN9neeAsRIQp3syn0TFOyhSP8Qamp;sig2=AXyDi_HaNjEix3Dg1Ifm9gamp;bvm=bv.71126742,d.aWw onmousedown=return

[wtr-general] Re: href method does not give the 'right' url

2014-07-16 Thread Steven Yue
But why watir triggered this kind of binding? Doesn't watir just use xpath or css underneath to find the element from the document? Why will it trigger any binding? On Wednesday, July 16, 2014 10:10:47 AM UTC-4, Super Kevy wrote: a

[wtr-general] Re: href method does not give the 'right' url

2014-07-16 Thread Super Kevy
I think jquery is being used in the html5 version of google search. Can you try your test again with internet explorer versions below 11. I think you'll find a much different result On Wednesday, July 16, 2014 10:09:58 AM UTC-5, Steven Yue wrote: But why watir triggered this kind of binding?

[wtr-general] Re: Unable to acces text_field inside a frame coz of some #document tag in the HTML.

2014-07-16 Thread Super Kevy
What is the doctype of the parent page? What is the doctype of the frames? I have also seen the issue with frame failures on some older XP machines with limited memory. My work-a-round was to tab to the control - very ugly and brittle. On Wednesday, January 23, 2013 8:38:33 AM UTC-6,