I am trying to use the 'find' command of twill from within a python code but it seems to return no result. I tried to run that command on the command prompt by running twill and it works fine. But when I try to run the same command from a python code, it returns 'None' as result.
My code is as follows:
-- trial.py-- from twill.commands import * from twill import commands go('http://www.gmail.com/') showforms() print find("Email")
This returns 'None' on the command prompt when I run trial.py from the command prompt.
Any help or suggestions will be very helpful. Thank you.