On 15 May 2007 06:38:45 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm trying to use PAMIE to login to a website:
>
> import cPAMIE
>
> # python.org - just a test, works fine
> ie = cPAMIE.PAMIE()
> website = "http://www.python.org";
> ie.navigate(website)
> ie.textBoxSet('q', 'pamie')
> ie.buttonClick('submit')
>
> # expekt.com - this is what I want to do, but it fails
> ie = cPAMIE.PAMIE()
> website = "http://www.expekt.com/eng";
> ie.navigate(website)
> ie.textBoxSet('user', 'MyLogin')
> ie.textBoxSet('pass', 'MyPassword')
> ie.buttonClick('actn')

I don't have PAMIE installed nor have I ever used it,   but the login
area is in a frame and I've had problems with other screen scrapers
and frames.

The frame URL is http://www.expekt.com/contenttop.jsp ,  you could try
navigating directly to the frame to see if it helps

website = "http://www.expekt.com/contenttop.jsp";
ie.navigate(website)
ie.textBoxSet('user', 'MyLogin')
ie.textBoxSet('pass', 'MyPassword')
ie.buttonClick('actn')

HTH :)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to