Re: open URL in the current tab

2012-12-11 Thread Jabba Laci
Dear All, If someone is interested, I've made a module out of it. Available here: https://github.com/jabbalaci/jabbapylib/blob/master/jabbapylib/browser/firefox.py It seems you can program your Firefox instance from your script as you want through this add-on. I will explore the possibilities in

Re: open URL in the current tab

2012-12-10 Thread Chris Angelico
On Tue, Dec 11, 2012 at 11:05 AM, Jabba Laci wrote: > Hi, > >> If this is for use on somebody else's system, *please don't*. My > > This is for me. I have a simple GUI that produces some URL that I want > to open in the current tab. Since I want to verify several URLs, I > don't want to open dozen

Re: open URL in the current tab

2012-12-10 Thread Jabba Laci
Hi, > If this is for use on somebody else's system, *please don't*. My This is for me. I have a simple GUI that produces some URL that I want to open in the current tab. Since I want to verify several URLs, I don't want to open dozens of new tabs. Here is my working solution. It requires the Moz

Re: open URL in the current tab

2012-12-10 Thread Chris Angelico
On Tue, Dec 11, 2012 at 9:27 AM, Jabba Laci wrote: > 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? If this is for use on somebody else's system, *please don't*. My current tab is my business, not

Re: open URL in the current tab

2012-12-10 Thread Jabba Laci
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 = However, for this you need to install this add-o

Re: open URL in the current tab

2012-12-10 Thread Boris FELD
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 : > Hi, > > With the webbrow

Re: open URL in the current tab

2012-12-10 Thread Joel Goldstick
On Mon, Dec 10, 2012 at 5:27 PM, Jabba Laci wrote: > 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? > > The docs say this: webbrowser.open_new(*url*) Open *url* in a new window of the default brow

open URL in the current tab

2012-12-10 Thread Jabba Laci
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