in reply to Re^3: How to Enter a value to a field without having name in WWW-Mechanize-Firefox
in thread How to Enter a value to a field without having name in WWW-Mechanize-Firefox

To enter a value to a field, we need the "name" normally, like  $mech->field(name => $value) and here i do not have a name associated with it. Pls check the below Source code for that

<input class="getaquotepagezipcodefield" id="iaQuoteByZip" type="text" style="background-color: rgb(255, 255, 255); ">

Or Can we do it some other way? I don't know and I didn't see it till now. Also how can we enter a value to a field using Xpath, Can you pls give a code here

Replies are listed 'Best First'.
Re^5: How to Enter a value to a field without having name in WWW-Mechanize-Firefox
by Anonymous Monk on Nov 05, 2012 at 04:04 UTC

    I already told you, use an xpath

    firefox plugins xpather can help you with write xpaths