Launch a webpage on a Firefox (win) tab using Python

Posted by Leandro Ardissone on Stack Overflow See other posts from Stack Overflow or by Leandro Ardissone
Published on 2009-05-06T23:52:20Z Indexed on 2010/04/29 4:37 UTC
Read the original article Hit count: 352

Filed under:
|
|

Hi,

I'm trying to launch a website url in a new tab using python in that way, but it didn't worked in these both ways:

Method 1:

os.system('C:\Program Files\Mozilla Firefox\Firefox.exe -new-tab http://www.google.com/');

and Method 2:

os.startfile('C:\Program Files\Mozilla Firefox\Firefox.exe -new-tab http://www.google.com/');

If I don't add the parameters (-new-tab http://www.google.com/) it works, opening the default page.

© Stack Overflow or respective owner

Related posts about python

Related posts about Windows