[wtr-general] Re: Checking if link exists

2009-10-02 Thread karim rayani
Hi try this syntax require watir test_site = http://www.google.com; ie = Watir::IE.new ie.goto test_site puts ie.link(:index,1).to_s *puts ie.link(:index,1).href* # above is the href property to extract the href value from the hyperlink sleep(10)

[wtr-general] Re: Checking if link exists

2009-10-02 Thread Shlomit Gazit
Thanks. I realized I had to use .innerText On Oct 2, 11:06 am, karim rayani karim@gmail.com wrote: Hi try this syntax require watir test_site = http://www.google.com; ie = Watir::IE.new ie.goto test_site puts ie.link(:index,1).to_s