473,662 Members | 2,704 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

3 New Member
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 3086
WilliamWallace
3 New Member
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
WilliamWallace
3 New Member
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
3221
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 uploading files, the file input box does not allow PAMIE to enter in a path to a file. With downloading files, I can click on the link to download the file, but thats where I get stuck at. It brings up that download window and then it brings up the where to save window.
5
6151
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 tried to include only the important stuff) ---------------------------------------------- <SCRIPT language="JavaScript"> function mainPageOnLoad() {
21
34388
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 web server has many useful purposes, the most obvious of which is the sharing of files. For example, you upload images to a server to share them with other people over the Internet. Perl comes ready equipped for uploading files via the CGI.pm module, which has long been a core module and allows users...
3
4932
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 added <Directory "D:/softwares/Apache2.2/htdocs"> AddHandler mod_python .py PythonHandler mptest PythonDebug On </Directory>
4
4741
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 -lpython25 -lpq -lws2_32 -ladvapi32 -o build \lib.win32-2.5\psy copg2\_psycopg.pyd c:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lpq collect2: ld returned 1 exit status
1
2433
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 copy, ctrl+x to cut selected text, # ctrl+v to paste, and ctrl+/ to select all # count words in a text and show the first ten items
2
4502
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 way to partition the pickle object and combine later if this is a problem due to limited resources (memory) on the machine (it is 32 bit machine Win XP, with 4GB RAM). Here is the detail description of the error:
5
3219
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 questions can be found (Experts Exchange, etc.) I'm hoping this will be the place. I tried to duplicate the authors "ie.writeScript" function shown at
1
1371
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 attempt to automate the forms process... without success. Can someone PLEASE Assist!? I'm using the following code.... from cPAMIE import PAMIE
0
8435
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8768
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8547
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7368
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.