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