You should use the file:// handler ... should work.

ie.goto( "file://c:/myApp/config/config.xml" )

... anything you can do with IE can be done...

If you are looking for the URL to the local file:

Click "File" -> "Open"

Navigate to the file and click Open

Copy the URL in the IE address bar.

Use that in your GoTo ... should be all you need.

j.


On 10/4/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Support Requests item #2574, was opened at 2005-10-04 13:21
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=488&aid=2574&group_id=104

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Need file access by URL instead of actual path

Initial Comment:
Is there a way to access files using the URL, instead of the actual OS path?  I want to muck with my web app's config settings in my watir scripts, in order to manipulate the app for testing.  The actual file path for the config files will vary depending on the location from which the scripts are run.  But the URL path is always constant.  If I could access files using //localhost/myApp/config/config.xml, I would be in business.  But this fails in ruby/watir.  They don't seem to understand a path like that.


----------------------------------------------------------------------

You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=488&aid=2574&group_id=104
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general



--
"http://ruby-lang.org -- do you ruby?"

Jeff Wood
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to