open URL in the current tab

Boris FELD lothiraldan at gmail.com
Mon Dec 10 17:43:50 EST 2012


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('http://www.ubuntu.com/')

2012/12/10 Jabba Laci <jabba.laci at gmail.com>:
> 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
> --
> http://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list