Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #34577
| References | <CAOuJsM=ch3T=L3+7rQ=sg5t_LmA5v_nXJLYYTw7ySD30Vmx+qA@mail.gmail.com> <CAPYZrkDO=-azLMxEHtk_jAJXjOeDD_wVyPUFJwtNzCp_9vATnA@mail.gmail.com> |
|---|---|
| From | Jabba Laci <jabba.laci@gmail.com> |
| Date | 2012-12-10 23:51 +0100 |
| Subject | Re: open URL in the current tab |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.690.1355179907.29569.python-list@python.org> (permalink) |
Thanks. I've found something interesting since then:
https://addons.mozilla.org/en-US/firefox/addon/mozrepl/
https://github.com/bard/mozrepl/wiki
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.
Laszlo
On Mon, Dec 10, 2012 at 11:43 PM, Boris FELD <lothiraldan@gmail.com> 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('http://www.ubuntu.com/')
>
> 2012/12/10 Jabba Laci <jabba.laci@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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: open URL in the current tab Jabba Laci <jabba.laci@gmail.com> - 2012-12-10 23:51 +0100
csiph-web