jjlee / mechanize

Stateful programmatic web browsing in Python, after Andy Lester's Perl module WWW::Mechanize .
http://wwwsearch.sourceforge.net/mechanize/
618 stars 123 forks source link

Cannot select a textarea within a form but within a <noscript> tag #49

Open Deusdies opened 13 years ago

Deusdies commented 13 years ago

I have the following code:

<form action="blabla" blabla >
<input 1 type=blah>
<input 2 type=blah2> etc
<noscript>
    <textarea name="prda" rows="3" cols="40"></textarea>
</noscript>

I want to fill out that textarea preferrably with mechanize (in Python), however, form["prda"] is always giving me control not found error. A user on StackOverflow has suggested that mechanize cannot parse controls that are within tag, which seems kind of odd for me. Is this true?