I'm trying to open a URL in a new window. I can't use selenium because it wouldn't be signed into Google.
My default browser is Chrome using Windows 10 and I already have 3 Chrome windows open each with multiple tabs.
here is my code on Python 3.6:
import webbrowser
url = 'https://google.com'
open_google = webbrowser.open('https://google.com', new=1)
open_google = webbrowser.open_new('https://google.com')
Both of these give me a new tab in my current window instead of a new window. Why is this happening? is it a setting in Chrome?
webbrowser.open('https://google.com --new-window')
. OR simply usesubprocess
oros.system()
instead ofwebbrowser
– Landfall