Thanks.
I realized I had to use .innerText
On Oct 2, 11:06 am, karim rayani 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
> *puts ie.link(:index,"1").href*
> # above is the href property to extract the href value from the hyperlink
> sleep(10)
>
> ie.close
>
>
>
> Thanx
>
> Karim Rayani
>
> http://karimnumerouno.wordpress.com
>
> On Fri, Oct 2, 2009 at 9:28 AM, Shlomit Gazit
> wrote:
>
>
>
>
>
> > Hello,
> > I want to check if a link exists in the page.
> > I dont know what the content text of the link is, but I know the url.
>
> > The procedure is:
>
> > I want to set a filter with a certain text and clicking on the filter,
> > it suppose to return nothing, that's how I will see that it is working
> > well.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---