Thanks Željko :) The href attribute worked fine.
Regards, Natasha ________________________________ From: Željko Filipin <[email protected]> To: [email protected] Sent: Tuesday, 19 May, 2009 11:30:30 Subject: [wtr-general] Re: Saving xml contents of a page shown on screen On Tue, May 19, 2009 at 12:01 PM, Natasha Ranney <[email protected]> wrote: > I tried using text property of browser to save the text shown on page as xml > file. It did save it. But it saved the '-' as well. I remember doing the same thing a long time ago, and being annoyed by `-` also. I am not sure how I solved the problem. Maybe if you open the page in Firefox, there is no `-`. > xmlurl = $ie.link(:text,"test").url Try: xmlurl = $ie.link(:text,"test").href but I am surprised that `url` does not work. Željko -- http://watirpodcast.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
