download button - how to get file with mechanize

Discussion in 'Ruby' started by zak, Jul 22, 2010.

  1. zak

    zak Guest

    hi,

    i'm having problems to access the content of a (csv-)file behind a
    download-button inside a form:

    <form>
    ....
    <input type="submit" class="ButtonDownload ButtonRechts" title="Daten
    herunterladen" id="ctl00_cphContent_btnDownload" value="Download"
    name="ctl00$cphContent$btnDownload">
    ....
    </form>

    any idea how to read or download the file?
    form.click_button(form.button_with('ctl00$cphContent
    $btnDownload')).body
    apparently yields the first line of the file?!
     
    zak, Jul 22, 2010
    #1
    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. Ryan Taylor
    Replies:
    2
    Views:
    1,352
    Ryan Taylor
    Nov 10, 2004
  2. Sam --
    Replies:
    2
    Views:
    950
    Sam --
    Mar 17, 2005
  3. Brett  Kelly
    Replies:
    1
    Views:
    955
    Steve C. Orr [MVP, MCSD]
    Jun 16, 2006
  4. Brian D
    Replies:
    1
    Views:
    615
    Brian D
    Dec 24, 2009
  5. Brian D
    Replies:
    1
    Views:
    518
    Brian D
    Dec 24, 2009
  6. Pradeep

    Mechanize click button

    Pradeep, Oct 5, 2007, in forum: Ruby
    Replies:
    1
    Views:
    240
    7stud --
    Oct 5, 2007
  7. Carl Bernardi
    Replies:
    8
    Views:
    321
    Marcin Raczkowski
    Feb 4, 2008
  8. Raymond O'Connor
    Replies:
    2
    Views:
    671
    Raymond O'Connor
    Aug 28, 2009
Loading...