By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,367 Members | 1,264 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,367 IT Pros & Developers. It's quick & easy.

Using cPamie for python to auto webpage

P: 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
Share this question for a faster answer!
Share on Google+

Post your reply

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