want to upload file using Browse button.

Discussion in 'Ruby' started by Bibhu Behera, Mar 13, 2009.

  1. Bibhu Behera

    Bibhu Behera Guest

    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/.
     
    Bibhu Behera, Mar 13, 2009
    #1
    1. Advertisements

  2. 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_file>')

    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/.
     
    Bassel Samman, Mar 13, 2009
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?ZGFycmVu?=

    html input file - just want to browse

    =?Utf-8?B?ZGFycmVu?=, Jul 6, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    494
    =?Utf-8?B?ZGFycmVu?=
    Jul 6, 2004
  2. bsm
    Replies:
    0
    Views:
    1,551
  3. =?Utf-8?B?S3VtYXIuQS5QLlA=?=

    File Upload's browse feature in ASP.NET

    =?Utf-8?B?S3VtYXIuQS5QLlA=?=, Oct 5, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    694
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Oct 5, 2007
  4. Replies:
    1
    Views:
    1,807
    Jonathan N. Little
    Nov 28, 2007
  5. Prakash
    Replies:
    3
    Views:
    652
    Ray at
    Nov 12, 2003
  6. bsm
    Replies:
    3
    Views:
    428
  7. Replies:
    0
    Views:
    388
  8. Replies:
    8
    Views:
    705
Loading...