472,338 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Using PAMIE with Python25, it tells me it can't find the Google search box

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 for it.

Everything except the textAreaSet function works flawlessly.

Here's the code:

[PYTHON]

Expand|Select|Wrap|Line Numbers
  1. from cPAMIE import PAMIE
  2.  
  3. ie = PAMIE()
  4.  
  5. ie.navigate("google.com")
  6. ie._wait()
  7. ie.textAreaSet('q', 'Python')
  8. ie._wait()
  9. ie.buttonClick('btnG')
[/PYTHON]

It opens the browser window, then looks for the text box and doesn't find it, returns false, then clicks the search button.

The return for the textAreaSet function is this:

** elementFind() did not find textarea-name;id-q
** textAreaSet() did not find q-Python


As I said, I'm out of ideas, the search box is there and named 'q' for all I can tell.

I apologize if this is something obvious, but I'm pretty new to this.

Thanks for your help.
May 21 '09 #1
2 3022
Update:

I've tried the same thing with Wikipedia, and it gives the same result.


[Python]

Expand|Select|Wrap|Line Numbers
  1. from cPAMIE import PAMIE
  2.  
  3. ie = PAMIE()
  4.  
  5. ie.navigate("wikipedia.org")
  6. ie._wait()
  7. ie.textAreaSet('search', 'Python')
  8. ie._wait()
  9. ie.buttonClick('go')
  10.  
which yields:

** elementFind() did not find textarea-name;id-search
** textAreaSet() did not find search-Python
May 21 '09 #2
I found out why it was wrong...

*facepalm*

I should have been using textBoxSet rather than textAreaSet.

Sorry for wasting anyone's time, I'll show myself out...
May 21 '09 #3

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

Similar topics

10
by: scrimp | last post by:
Ive been using PAMIE 1.4 to try to automate web page processes. The one thing I cannot do with it is upload files and download files. With...
5
by: Chris | last post by:
Hi, I'm trying to figure out how to submit javascript forms using win32com in order to complete repetitive processes. The Webpage Source: (I...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote...
3
by: joe jacob | last post by:
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I...
4
by: GHUM | last post by:
The compile works, BUT linking fails: 2.5\Release\psycopg\_psycopg.def -Lc:\python25\libs -Lc: \python25\PCBuild -Lc:/p ostgres/83RC2/lib...
1
by: alivip | last post by:
I integrat program to be GUI using Tkinter I try browser direction as you can see # a look at the Tkinter Text widget # use ctrl+c to...
2
by: Nagu | last post by:
I am trying to save a dictionary of size 65000X50 to a local file and I get the memory error problem. How do I go about resolving this? Is there...
5
by: frankrentef | last post by:
Can someone help with a PAMIE issue? I'm new to Python / PAMIE and they seem like great tools but to be honest I'm finding that no responses to...
1
by: frankrentef | last post by:
Greetings all. I'm new to PAMIE and I've watched / followed to PAMIE videos on Show me Do. I've tried to duplicate the "scriptWrite" function in an...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...

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.