Connecting Tech Pros Worldwide Help | Site Map

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

Newbie
 
Join Date: May 2009
Posts: 3
#1: May 21 '09
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.
Newbie
 
Join Date: May 2009
Posts: 3
#2: May 21 '09

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


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
Newbie
 
Join Date: May 2009
Posts: 3
#3: May 21 '09

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


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...
Reply

Tags
google, pamie, python