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. 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. Ryan Taylor
    Replies:
    2
    Views:
    944
    Ryan Taylor
    Nov 10, 2004
  2. Aaron Watters

    Re: Pdf download using mechanize

    Aaron Watters, Jul 6, 2010, in forum: Python
    Replies:
    0
    Views:
    835
    Aaron Watters
    Jul 6, 2010
  3. Aldo Ceccarelli

    Re: Pdf download using mechanize

    Aldo Ceccarelli, Jul 6, 2010, in forum: Python
    Replies:
    0
    Views:
    799
    Aldo Ceccarelli
    Jul 6, 2010
  4. Carl Bernardi
    Replies:
    8
    Views:
    209
    Marcin Raczkowski
    Feb 4, 2008
  5. Raymond O'Connor
    Replies:
    2
    Views:
    385
    Raymond O'Connor
    Aug 28, 2009
Loading...

Share This Page