in reply to Re^6: how can i retrieve fields name from a form with mechanize
in thread how can i retrieve fields name from a form with mechanize

Imagine a parking lot full of cars. I ask of you, "Give me the plate number of Millie's car." You can't. I didn't give you enough information.

Repeating yourself doesn't help. You didn't answer my question. What distinguishes the login field from the others? What distinguishes the password field from the others?

There is such as a thing as a password field, so that might be easy to guess, but there's no such thing as a login field as far as the browser is concerned. You need to tell us what makes the login field the login field because right now, the definition is entirely in your mind.

  • Comment on Re^7: how can i retrieve fields name from a form with mechanize

Replies are listed 'Best First'.
Re^8: how can i retrieve fields name from a form with mechanize
by navorinco (Initiate) on May 14, 2009 at 16:00 UTC
    im agree with you, all name fields of the form aren't similar. and there is different fields name.so there is no distinguishes between fields.

      If nothing distinguishes the ones you want from the others, then they're all the same, then just pick two arbitrary fields.

      But earlier on you said you didn't want to do that, which means they're not all the same, which means there's something distinguishes the ones you want from the others.

      Something you said isn't true, and I believe it's your claim that the fields are indistinguishable from each other. Order? Proximity to something else?