I can't use Selenium
or any other type of option that controls the browser, because I need to use it on sites that have strict restrictions against bots and automations, so I need to use the browser itself as it is originally.
I currently use the following pattern code to open websites:
import webbrowser
url = f"https://www.google.com/"
webbrowser.get("C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe %s").open(url)
With the web page already open in my browser, I have two extensions that I click to open the same window but as a pop-up, each extension has a different pop-up style, but both do not take up as much space as the browser's own options at the top of the page:
I would like to know if there is any way to specify in the Python code that I want to open as a pop-up or a normal tab so that I don't have to manually convert them using browser extensions.