By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,986 Members | 1,583 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,986 IT Pros & Developers. It's quick & easy.

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

P: 3
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
Share this Question
Share on Google+
2 Replies


P: 3
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

P: 3
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.