Re: Pressing A Webpage Button

2005-06-22 Thread calfdog
You also may want to fire an event when a button is pressed such as: ie.Document.forms['f'].elements['btnG'].FireEvent('onClick') Events: onclick Fires when the user clicks the left mouse button on the object. onsubmit Fires when a FORM is about to be submitted. For more go here: http://msdn.m

Re: Pressing A Webpage Button

2005-06-03 Thread J Correia
"Esben Pedersen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How do i know which methods the ie object has? dir(ie) doesn't show > Navigate. For ie object: http://msdn.microsoft.com/workshop/browser/webbrowser/reference/ifaces/IWebBrowser2/IWebBrowser2.asp For document object: h

Re: Pressing A Webpage Button

2005-06-03 Thread Esben Pedersen
J Correia wrote: > "Elliot Temple" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>How do I make Python press a button on a webpage? I looked at >>urllib, but I only see how to open a URL with that. I searched >>google but no luck. >> >>For example, google has a button how

Re: Pressing A Webpage Button

2005-06-01 Thread Paul Rubin
Grant Edwards <[EMAIL PROTECTED]> writes: > > I presume you can figure out how to open the URL instead of > > printing it? > > Ah, never mind. That doesn't work. Google somehow detects > you're not sending the query from a browser and bonks you. Try setting the User-agent: header to one that lo

Re: Pressing A Webpage Button

2005-06-01 Thread Grant Edwards
On 2005-06-02, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2005-06-01, Elliot Temple <[EMAIL PROTECTED]> wrote: > >> How do I make Python press a button on a webpage? > > You just do whatever action is specified for the form > containing the button. > >> I looked at urllib, but I only see how to

Re: Pressing A Webpage Button

2005-06-01 Thread Grant Edwards
On 2005-06-01, Elliot Temple <[EMAIL PROTECTED]> wrote: > How do I make Python press a button on a webpage? You just do whatever action is specified for the form containing the button. > I looked at urllib, but I only see how to open a URL with > that. Guess what happens when you push that butt

Re: Pressing A Webpage Button

2005-06-01 Thread jerky
hi, urllib does not work when search from google.com, since google.com have some limitations to developer , you can get more details from www.google.com/apis/ "Elliot Temple" <[EMAIL PROTECTED]> ??:[EMAIL PROTECTED] > How do I make Python press a button on a webpage? I looked at urllib,

Re: Pressing A Webpage Button

2005-06-01 Thread John J. Lee
Elliot Temple <[EMAIL PROTECTED]> writes: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no luck. [...] You might find the FAQ list and hints below useful after you get over the initial barriers (and

Re: Pressing A Webpage Button

2005-06-01 Thread Tim Roberts
Elliot Temple <[EMAIL PROTECTED]> wrote: > >How do I make Python press a button on a webpage? I looked at >urllib, but I only see how to open a URL with that. I searched >google but no luck. > >For example, google has a button how would i make a script to press that button? > >Just for fu

Re: Pressing A Webpage Button

2005-06-01 Thread J Correia
"Elliot Temple" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no luck. > > For example, google has a button how would i make a script to

Re: Pressing A Webpage Button

2005-06-01 Thread Steve M
Do you actually need to 'press' the button? Or do you just need the effect that pressing the button would bring about (e.g., submitting a Google search query and receiving the results page)? If the latter, then you might want to search for, e.g., "html form get post" and check out some results. Pu

Re: Pressing A Webpage Button

2005-06-01 Thread Brian Beck
Elliot Temple wrote: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no luck. Check out mechanize: http://wwwsearch.sourceforge.net/mechanize/ -- Brian Beck Adventurer of the First Order -- http://ma