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. Advertising

  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. Advertising

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. bsm
    Replies:
    0
    Views:
    1,300
  2. Replies:
    1
    Views:
    1,633
    Jonathan N. Little
    Nov 28, 2007
  3. bsm
    Replies:
    3
    Views:
    283
  4. Replies:
    0
    Views:
    205
  5. Replies:
    8
    Views:
    488
Loading...

Share This Page