Hi,
I'm completely new to python and twill. I have been trying, with no success, to 
create a script which will automatically log into www.crimebloc.com. I have 
been using the following modified example:

from twill.commands import go, showforms, formclear, fv, submit

go('http://www.crimebloc.com/')
showforms()

formclear('1')
fv("1", "login", "username")
fv("2", "pass", "password")
fv("1", "sublogin", "login")
showforms()

submit('0')

I get the following error when i execute it:

Traceback (most recent call last):
  File "test.py", line 11, in 
    fv("2", "pass", "password")
  File 
"/usr/lib/python2.5/site-packages/twill-0.9b1-py2.5.egg/twill/commands.py", 
line 426, in formvalue
    raise TwillAssertionError("no matching forms!")
twill.errors.TwillAssertionError: no matching forms!

Like i said i am completely new to to all this and cant see anyway to get 
passed this. Any help will be appreciated.

Thanks,
MOhammed
_________________________________________________________________
Celeb spotting – Play CelebMashup and win cool prizes
https://www.celebmashup.com
_______________________________________________
twill mailing list
[email protected]
http://lists.idyll.org/listinfo/twill

Reply via email to