Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python': 0.09; 'received :mail-vb0-f46.google.com': 0.09; 'tab': 0.09; 'cc:addr:python- list': 0.10; 'selenium': 0.16; 'subject:URL': 0.16; 'thanks,': 0.18; 'received:209.85.212.46': 0.18; 'module': 0.19; 'import': 0.21; 'cc:2**0': 0.23; 'example': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'url:mailman': 0.29; 'url:python': 0.32; 'could': 0.32; 'url:listinfo': 0.32; 'hi,': 0.33; 'received:google.com': 0.34; 'open': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'should': 0.36; 'possible': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'header:Received:5': 0.40; 'url:mail': 0.40; 'think': 0.40 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 :cc:content-type; bh=3sFXkSUeMMnueZs13gKrVXuGD18Qr7yaczzPxq49qsI=; b=xXWD3gHcHpGwB2GAcAJNKL8Zlpw+QpixzfeciBtDVjaHuQjcJ2+FpLucWNAMefRGOL C5+I9HDklgkelF7MbD3I25dGQcAKSq+i6DRAbZGjlTZayJnKLeC6pvMXqrh68d7UFUTl 4LA1m+CJ5KTkoZ/zXtYmr/KhwFXS671rlHedYeh70B9qCYZBbvpWHzA9n5J3xA/kBnDU yarrt5imCh38dQ/Uu959qDrqbFX98GWYek7dMBBUJ9tilYYuJ4XYC/b9VA5yqBUTIDEn iReZSxsk+7eAbGmpuMqhM1zYy0XHMOQmO4hOY2vIvX9FMmgM9syBGyNZDWKykKvDxaLH qdZw== MIME-Version: 1.0 In-Reply-To: References: From: Boris FELD Date: Mon, 10 Dec 2012 23:43:50 +0100 Subject: Re: open URL in the current tab To: Jabba Laci Content-Type: text/plain; charset=UTF-8 Cc: Python mailing list 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1355179454 news.xs4all.nl 6853 [2001:888:2000:d::a6]:38435 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34576 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