open URL in the current tab

Jabba Laci jabba.laci at
Mon Dec 10 23:51:24 CET 2012

Thanks. I've found something interesting since then:

It allows you to connect to your Firefox via telnet. Then changing the URL:

content.location.href = <new_url>

However, for this you need to install this add-on.


On Mon, Dec 10, 2012 at 11:43 PM, Boris FELD <lothiraldan at> wrote:
> Don't think that it's possible with webbrowser, you should try with Selenium.
> For example with sst (Simple Selenium Test), it open url in current
> tab or create a new one if no one exists:
> from sst.actions import *
> go_to('')
> 2012/12/10 Jabba Laci <jabba.laci at>:
>> Hi,
>> With the webbrowser module you can open a URL in a new tab. But how
>> could I tell Firefox from Python to open a URL in the _current_ tab?
>> Thanks,
>> Laszlo
>> --

More information about the Python-list mailing list