I have accessed the www.google.com page using mechanize and got all the inputs on the form in to an array using find_all_inputs() method which had returned the reference to the list of inputs... Could any one let me know how can i get the name of each input.