3

I want to fill out a HTML input field with mechanize which looks like this:

<input type="text" id="xy" name="xyz" [and some others] />

The problem: It is not located in a form, so br.select_form(...) don't work. How can I gain access to this field? Selecting the global form and br['xyz'] don't work, too. There is also a second input field which even doesn't have a name to address.

phihag
  • 278,196
  • 72
  • 453
  • 469

1 Answers1

0

Seems like javascript puts the form/fields on the page, Mechanize doesn't handle javascript, see this answer for more details and an alternative solution How to properly use mechanize to scrape AJAX sites

Community
  • 1
  • 1
cerberos
  • 7,705
  • 5
  • 41
  • 43