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.
you can use Mozilla class in webbrowser:
Use
os.startfile()
passing only the url. This will cause the URL to be opened in a new tab/window in the user's default browser, which is much nicer to your user.opening a link without internet explorer and use firefox, just make sure firefox is the default web browser.