467,915 Members | 1,779 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

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
  • viewed: 2900
Share:
2 Replies
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

Post your reply

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

Similar topics

5 posts views Thread by Chris | last post: by
5 posts views Thread by frankrentef | last post: by
1 post views Thread by frankrentef | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.