Simple file upload

Discuss RoboTask here
Post Reply
Vikram
Posts: 3
Joined: Fri Apr 22, 2005 9:51 am
Location: United States

Simple file upload

Post by Vikram »

Hi,
I am evaluating ROBOTASK for my company.
I am having difficulty in uploading couple of files using IE browser.
I am having a browse button in my browser window and i have multiple files in my local system to upload. Is there any way to upload all the files without using lot of mouse clicks.
Because i cannot point to mouse click to a particular location.
Thanks in Advance
Vikram
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Simple file upload

Post by Oleg »

Do you want to automate Internet Explorer?
You chose a very non comfortable object for your experiments on some reasons:
- now there is no way to catch the end of page loading (or files uploading );
- Placement of form elements depend of very many factors. So mouse actions may be a non effective;
- Forms on web pages can change from time to time.

Try to use send keystrokes action. Tab key allows you to select necessary form field. Space bar emulate the pressing of buttons.

We have planned to make a collection of actions specially for web browser in future.
Vikram
Posts: 3
Joined: Fri Apr 22, 2005 9:51 am
Location: United States

Simple file upload

Post by Vikram »

Thanks for you response.
can any one kow how to send a space bar key stroke.
Thanks
Vikram
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Simple file upload

Post by Oleg »

When you tune the keystroke action in "keys" field type the simple space.
For example:
"{TAB}{TAB}{TAB}Hello, world{TAB}{TAB}{TAB}{TAB}{TAB}{TAB} "
At the end of this string is placed a space. It means:
- Pressing Tab-key 3 times
- Typing of string "Hello, world"
- Pressing Tab-key 6 times
- Pressing the spacebar key

For links and buttons you also can use Enter key ({ENTER}). In this case my example will be so:
"{TAB}{TAB}{TAB}Hello, world{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}"
Post Reply