The mechanism does not handle Javascript. It is best to use a browser to handle Javascript - if you prefer to use it in Python, use PythonExt .
You can also try Selenium - seleniumhq.org. It is used to test websites, but can also submit forms.
source share