Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > want to upload file using Browse button.

Reply
Thread Tools

want to upload file using Browse button.

 
 
Bibhu Behera
Guest
Posts: n/a
 
      03-13-2009
Below is the code:

$ie.file_field(:id,'_20_file').click_no_wait

$ie.file(:id,'_20_file').click

$ie.button(:id,'_20_file').click


Not working above all script. Please any pointer ?
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Bassel Samman
Guest
Posts: n/a
 
      03-13-2009
I assume you're talking about watir. I don't think you need to click,
but maybe focus. you can don't need to click. You can do
$ie.file_field(:id,'_20_file').set('C:\<Path_to_fi le>')

thanks,

Bassel
http://www.imustrant.com


Bibhu Behera wrote:
> Below is the code:
>
> $ie.file_field(:id,'_20_file').click_no_wait
>
> $ie.file(:id,'_20_file').click
>
> $ie.button(:id,'_20_file').click
>
>
> Not working above all script. Please any pointer ?


--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hange the text of browse button in file upload control lale.kat@gmail.com HTML 1 11-28-2007 03:04 PM
Assigning value to Browse button without using browse button in HTML balakrishnan.dinesh@gmail.com Javascript 0 10-12-2007 06:45 AM
File Upload's browse feature in ASP.NET =?Utf-8?B?S3VtYXIuQS5QLlA=?= ASP .Net 3 10-05-2007 07:36 PM
File Upload - Change key code for ENTER key on Browse Button bsm ASP .Net 0 05-10-2007 11:13 AM
Internet Explorer 6 Can't Browse, Other Programs Browse Fine... Ike Computer Support 1 08-02-2005 09:20 PM



Advertisments