Path: csiph.com!usenet.pasdenom.info!aioe.org!rt.uk.eu.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.nosignal.org!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.039 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'python': 0.09; 'tab': 0.09; 'url:github': 0.09; 'dec': 0.15; 'selenium': 0.16; 'subject:URL': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'thanks,': 0.18; 'module': 0.19; 'import': 0.21; 'thanks.': 0.21; 'example': 0.23; "i've": 0.23; 'allows': 0.25; 'header:In-Reply-To:1': 0.25; 'url:wiki': 0.26; 'message-id:@mail.gmail.com': 0.27; 'url:mailman': 0.29; 'install': 0.29; 'url:python': 0.32; 'could': 0.32; 'url:listinfo': 0.32; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'open': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.36; 'url:org': 0.36; 'should': 0.36; 'possible': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'url:mail': 0.40; 'think': 0.40; 'your': 0.60; 'url:en-us': 0.65; 'add-on.': 0.84; 'boris': 0.84; 'url:addons': 0.84; 'url:mozilla': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=BlOWnWZnWwSTLomTyYH8dTp1Zwqh1tMeo8FD/xnRi8k=; b=sELkarroa9iC0WY3eFtv/sN3QLMyqmGB3MQfiTiv7xJkEhV1tATPqMbI3D/5HTNE/T zm9pYDB9c5K2vX8lcY4iXJZ6X1slfAuQOV7leseKEDZba6HiVybPuM+i2G51tBD44DtV YSSHmWMGqodvNdlNYvOlayyT043y64st3VpPx6Jg2mqGE6k2lK0I1mJEmzVRYgSleK9n ztMvkk+5/Q2eoZpb0FDPf9ohUPXFQYPWHdIxKwsqvbYDoqyox12X6agUg7H+J3caIb8J 8hRXLNbiy+YDYULxRb0Ij8QMgEHt0HiCpeOzgQT8L4YGm9BSTHHsJq9r/vITVxFKQFzl SPeg== MIME-Version: 1.0 In-Reply-To: References: From: Jabba Laci Date: Mon, 10 Dec 2012 23:51:24 +0100 Subject: Re: open URL in the current tab To: Python mailing list Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1355179907 news.xs4all.nl 6921 [2001:888:2000:d::a6]:43348 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34577 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-on. Laszlo On Mon, Dec 10, 2012 at 11:43 PM, Boris FELD 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 : >> 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