How to Specify File to Open After Launching Application

Ask general questions here.
psturman
Posts: 2
Joined: Thu Mar 14, 2013 5:32 pm

How to Specify File to Open After Launching Application

Post by psturman » Thu Mar 14, 2013 5:37 pm

Greetings Everyone,

I am currently working on evaluating Ranorex and so far it seems really easy to use and I like it a lot.

I have what I hope is a fairly simple question.

When recording a script, the first thing I want to do after launching my application is to open a file. I do not want to record mouse scrolling in the dialog as that could change depending on how many files are in the directory. I would like to just specific a directory and file and have it open. I don't as of yet see how to do that, although I'm sure you can. I would greatly appreciate a nod in the right direction. I have looked through the help and don't see anything as of yet.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How to Specify File to Open After Launching Application

Post by Support Team » Fri Mar 15, 2013 1:21 pm

Hello,

Is it a standard file dialog which your application is using in order to select a file?
If yes, you can insert the whole path into the text field of the "File Name" using the "SetValue" action.
DirPath.png
DirPath.png (16.22 KiB) Viewed 689 times
Please let me know if this helps.

Regards,
Bernhard
.
Image

psturman
Posts: 2
Joined: Thu Mar 14, 2013 5:32 pm

Re: How to Specify File to Open After Launching Application

Post by psturman » Fri Mar 15, 2013 3:52 pm

Thanks so much Bernhard.

That is exactly what I needed to know.

Loving this tool so far.