


Options instead of chrome_options driver = (x86)\BraveSoftware\Brave-Browser\Application\brave.exe",Ĭhrome_options=chrome_options) # change the executable_path tooĬangrejos\bulk masive\bulk-dozer.py:19: DeprecationWarning: use Open_id(row=22, column=1) #give some visual specifications for the buttonĬ:\Users\ResetStoreX\Pictures\Cryptobote\Cryptobote NFTs\CryptoĬangrejos\bulk masive\bulk-dozer.py:19: DeprecationWarning:Įxecutable_path has been deprecated, please pass in a Service objectĭriver = webdriver.Chrome(executable_path="C:\Program Files So far so good, now, it happens that I need to make the program above interact with the OpenSea Tab, specifically to evaluate if the OpenSea page is asking the user for connecting a wallet or not, so I know I can use Selenium package for that, and I tried first to make this program open a window in my default browser using the following code: import tkinter as tkįrom import OptionsĬhrome_options.add_argument("-user-data-dir="+r"C:\Users\ResetStoreX\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default") # change to profile pathĬhrome_options.add_argument('-profile-directory='+'Default')ĭriver = webdriver.Chrome(executable_path="C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe", chrome_options=chrome_options) # change the executable_path tooĭriver.ExecuteScript("window.open('your URL', '_blank') ") #open a new tab using user's default browser Result after clicking the "Open OpenSea Tab" button: Open_id(row=22, column=1) #give some specifications Open_browser = tk.Button(root, width=20, text="Open OpenSea Tab", command=open_chrome_profile) #executes the function when clicked Webbrowser.open_new_tab('') #open a new tab using user's default browser Root.attributes('-topmost', True) #keep the program's window top-most Root.title("Bulkdozer") #Name of this program I have made a simple program that opens a new tab in my default browser when clicked the Open OpenSea Tab button, here: import tkinter as tk
