one whacky way of doing it is to use the html of the page. will require some parsing on your part to get to the href.
pageToParse=ie.html getMeTheHref=pageToParse.grep(/href/) now you can parse getMeTheHref to get your href out. On Mar 5, 7:17 am, TCBlues <tcbl...@gmail.com> wrote: > Nope... it doesn't work > > On Mar 5, 12:11 pm, wesley chen <cjq....@gmail.com> wrote: > > > Try the code below > > $ie.links.collect { |link| > > puts link.href > > > } > > > Thanks. > > Wesley Chen. > > > On Thu, Mar 5, 2009 at 8:07 PM, TCBlues <tcbl...@gmail.com> wrote: > > > > Hallo, > > > I have this on the html: <link rel="stylesheet" href="/Cad/css/ > > > sheetCP.css" type="text/css" media="screen, projection"> > > > > How is possible to get access to this tag? I need to get the href. > > > > It's not possible through ie.link. > > > > Thanks in advance. > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---