469,616 Members | 1,741 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,616 developers. It's quick & easy.

Using cPamie for python to auto webpage

25
Hey everyone,

I'm trying to automate a webpage using cPamie in conjection with python 2.4. I can get to the page and login. when I try to click the login button, I receive an out of index error. This website has a hidden control that opens a separate page to give messages from the site and those are also posing a problem for me. Code below:

ie = cPAMIE.PAMIE()
ie.Navigate(url)
ie.Navigate(url-2)
ie.SetTextBox(usrname,'USERNAME',0)
ie.SetTextBox(psswd,'PASSWORD',0)

ie.ClickButton('loginButton',0)

the first url is the mainpage of the site. Once in the mainpage, there is a "mouseover" event that leads to a login screen, which is url-2. I can get to url-2 directly and bypass url, but once I enter the usrname and psswd and click the loginButton I receive and "out of index" error, but I'm still able to get to the desired page, but secondary windows are also opened containing messages from the site as well as a blank page. This is making it very difficult to navigate the site. Any help would be greatly appreciated and if there is a better way to do this using python....I would like to know. Thanks
Jan 18 '08 #1
0 1270

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by David Stockwell | last post: by
12 posts views Thread by Rex Eastbourne | last post: by
11 posts views Thread by Johnny Lee | last post: by
1 post views Thread by Sam R | last post: by
6 posts views Thread by Aswin | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.