HTML Element

06-03-2005, 12:13 AM
We set the "input type=text" with this:

We set the "input type = Checkbox" with this:
htmlelement.checked =true

We set the "Option" with this:
htmlelement.selected = true

How do we set the "input type=file"?

for example, we want to put the value "C:\windows\", How do we put it in htmlelement?

06-03-2005, 01:44 AM
Impossible due to security reason.

06-03-2005, 03:12 AM
This is not allowed by Internet Explorer. The File field is not able to hold any value - just as you can't set its value.

You may be able to do this by using Sendkeys()

06-06-2005, 02:32 AM
its sad man. I am using sendkeys now. but I am to load multiple webbrowsers and set values simultaneusly. I think sendkeys wo'nt work. Thankz. :(

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum