473,320 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 1391

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

Similar topics

4
by: David Stockwell | last post by:
Hi, In java/jsp I can pass parameters to my python script on a webpage by doing something like this: http://somewhere.org/mypage.jsp?parm1=something&parm2=another How do I do that with...
12
by: Rex Eastbourne | last post by:
Hi, I'm interested in running a Python interpreter in Emacs. I have Python extensions for Emacs, and my python menu lists "C-c !" as the command to run the interpreter. Yet when I run it I get...
11
by: Johnny Lee | last post by:
Hi, I was using urllib to grab urls from web. here is the work flow of my program: 1. Get base url and max number of urls from user 2. Call filter to validate the base url 3. Read the source...
1
by: Sam R | last post by:
Hi, I am new to Python, and PAMIE has been a very useful tool for my website functionality testing. I was wondering if anyone knows how to do the following testcases with either PAMIE or Python....
6
by: Aswin | last post by:
Hi, I just tried to run a sample test by the following script: import cPAMIE as PAMIE ie = PAMIE( ) ie.Navigate("'www.google.com" ) ie.textBoxSet("q", "python" ) ie.buttonClick("'btnG" )
1
by: acehigh1983 | last post by:
hello fellow coders i'll try and explain this as best as i can... I have created a .shtml page, all this does is mimic another webpage (i.e. same variables, textboxes etc) its just a different...
3
by: lezzo | last post by:
Hi Guys, I am new to this forum and find very interesting. I need your help in one of the script. I got a MySQL table bid_amount, and i want that if some new data comes in this table and...
1
by: jloyzaga | last post by:
import sys import cPAMIE url = sys.argv dom = cPAMIE.PAMIE(url) how can I maximize the current active browser?
2
by: WilliamWallace | last post by:
Hi, I'm pretty new to Python, and brand new to PAMIE, and I'm out of ideas on what to try on this. I'm running a simple test script to go to google, type something in the search box and search...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.