Put a url in a browsers address bar

C

Colin Gillespie

Dear All,

I would like to place a url in my browsers address bar, then execute.
How can do this?

e.g.

def goToGoogle():
url = "www.google.com"
b = openBrowser()
b.goToUrl(url)
return True

Thanks for any help

Colin
 
P

Peter Hansen

Colin said:
Thanks for the quick reply. Do you know what module I would use to fill
out a form on an open web page?

The answer involves Google again, but this time it is "Use Google Groups
to search the archives for previous answers to questions like yours",
which is good advice to follow most of the time when you have a question
that seems likely to have been asked before.

Try this search pattern for a start "python fill out form on web page".

(Note, Google Groups, not just Google.)

-Peter
 
S

Steve Holden

Colin said:
Thanks for the quick reply. Do you know what module I would use to fill
out a form on an open web page?

Thanks

Colin
Oops. ClientForm expects you to be interacting directly with the server,
not driving an open browser window. To do the same thing through the
browser would involve using COM, I suspect. If so be careful, as what
you implement may end up being browser-specific.

regards
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top