#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    88
    Rep Power
    10

    Filling Out Forms on Webpages


    How would you go about filling in and submitting a html form using python?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Location
    Bimingham,AL
    Posts
    68
    Rep Power
    11
    somebody posted this sometime back

    http://www.mayukhbose.com/python/IEC/index.php

    Makes your job really easy.

    but works only on windows though
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Posts
    52
    Rep Power
    13
    Do you mean having Python handle the form data? If so look at the cgi module in the Python documentation.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    88
    Rep Power
    10
    Thanks.
    One more question.
    If the name of a form isn't visible in the source code of a page, how would I refer to it in IEC?
  8. #5
  9. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,638
    Rep Power
    4247
    Originally Posted by pylon
    Thanks.
    One more question.
    If the name of a form isn't visible in the source code of a page, how would I refer to it in IEC?
    If the form name isn't present, this is because there's only one form on the HTML page. Usually forms have a submit button, so you can do something like this:
    Code:
    ie.ClickButton(caption='Submit Data')
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    88
    Rep Power
    10
    Thanks.

IMN logo majestic logo threadwatch logo seochat tools logo