I am using mechanize to automate some form submissions.
To do that I require to go to the home page of some website, click on a link with a particular text which redirects me to an another page and fill in the form in the new page.
I tried using
response = br.follow_link(text_regex="sometext")
for f in response.forms()
print f.name
The error Message I got was AttributeError: closeable_response instance has no attribute 'forms'
When I tried
for f in br.forms()
print f.name
It prints the name of forms in the hompage and not the new page I redirect to .
How can find the name of the forms in the new page ?
What does 'response' contain ?
And what is the difference between click_link() and follow_link() . The mechnanize doc doesn't explain this clearly.
Thanks