Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > problem with Pamie (textbox editing)

Reply
Thread Tools

problem with Pamie (textbox editing)

 
 
stanislav_ziak@tatrabanka.sk
Guest
Posts: n/a
 
      03-18-2009

Hi,

I try to test web aplication with using of modul Pamie and I have next problem,
when I edit any textbox or textarea and consequently press the button which works the data
in this textbox, so this textbox returns into the state before editing,

fof example:
Let I have 3 textboxes: box1, box2 and result
and 1 button: count, which fill sum of box1 and box2 in the textbox result
after using textBoxSet('box1','10') and textBoxSet('box2','10') is in both textboxes number 10,
but using buttonClick('count') delete number 10 in box1 and box2 and both return to the state before editing (empty),

here is my code:
#############################
from cPAMIE import PAMIE

ie = PAMIE()

ie.navigate("url")

ie.textBoxSet('att$text_TBName','name')
ie.buttonClick("att$text_TBName")
time.sleep(3)
ie.elementClick(ie.elementFind("Input","name","att $copyTBProxy2A"))
#############################
I tried it also without Pamie, but the result is the same:
#############################
from win32com.client import DispatchEx

ie = DispatchEx('InternetExplorer.Application')
ie.navigate("url")
ie.visible = 1
time.sleep(3)
el = ie.document.getElementsByTagName('input')
i=0
while (el[i].getAttribute('Name') <> "att$text_TBNname"):
i+=1
el[i].value = 'name'

j=0
while (el[j].getAttribute('Name') <> "att$copyTBProxy2A"):
j+=1
el[j].click()
#############################
application is ok, because
when I make it manual, so it works OK,


can somebody help me, what I make wrong,
thanks

__________________________________________________ __________________
Informacie obsiahnute v tomto dokumente su urcene vylucne pre
potreby jeho adresata. Dokument moze obsahovat informacie chranene
ako bankove alebo obchodne tajomstvo, pripadne informacie
podliehajuce ochrane podla inych pravnych predpisov. Preto Vas v
pripade, ak Vam bol mylne doruceny, vyzyvame, aby ste sa zdrzali
jeho odtajnenia ci jeho pouzitia pre vlastne potreby. Zaroven si Vas
dovolujeme poziadat, aby ste nas o takomto pripade bez zbytocneho
odkladu informovali a dokument nasledne zlikvidovali.

Information stated in this document is intended only for needs of proper
addressees of this document. This document can contain information
protected as a bank or business secret, or information protected by
other legal regulations. Thus in case of receiving the document by error,
we kindly ask you not to disclose, or use the document for your own
needs. Likewise we kindly ask you to notify us immediately upon such
a case by sending an email message to the sender's address, and
subsequently delete the document.

Tatra banka, a.s.
http://www.tatrabanka.sk/bankcoffee
Hodzovo namestie 3, 811 06 Bratislava 1
ICO: 00 686 930
Zapisana v obchodnom registri Okresneho sudu Bratislava I
Oddiel: Sa, vlozka cislo: 71/B

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PAMIE and beautifulsoup problem elca Python 0 10-23-2009 06:03 AM
PAMIE save an image elbertlev@hotmail.com Python 0 06-09-2006 06:31 PM
Pamie and Python - new browser focus saltima Python 0 05-02-2006 01:50 PM
Using PAMIE to upload and download files...is it possible? scrimp Python 10 06-23-2005 04:16 PM
OpenSource Automation tool - Pamie 1.5 released calfdog@yahoo.com Python 0 06-03-2005 05:03 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57