Brave Browser window should pop up at this point. Run the above code again, a new macOS prompt will appear saying smth about unknown developer again, this time you can just click Open. Then go to System Preferences -> Security & Privacy -> press the lock icon and unlock it and then approve chromedriver to run on your machine. Close that prompt (It's important that you do this before moving on). If you have never used chromedriver before, after runnning the code you should see a macOS prompt saying that chromedriver is from unknown developer or was downloaded from the internet, smth like that. 114) don't match, yet this works perfectly fine on my machine ( macOS Big Sur 11.2.3) I don't think macOS version should really matter, but i still mentioned it for the sake of completeness.įinally run the following code (replace paths with ones on your machine if they are different): from selenium import webdriverĭriverPath = '/usr/local/Caskroom/chromedriver/.23/chromedriver'īinaryPath = '/Applications/Brave Browser.app/Contents/MacOS/Brave Browser'īrowser = webdriver.Chrome(executable_path=driverPath, chrome_options=options) These two should match, however, i am not entirely sure to which degree, since, as you can see here, last entries (.If you have already installed Brave from the original setup, move the following files : APPDATABraveSoftwareBrave-BrowserUser Data to data Then run brave-portable.exe and remove Brave from your computer. 114 (Official Build) (x86_64) (again, latest as of writing this post) Download and install the latest portable setup where you want then run brave-portable.exe. Along the lines it should read Version 1.22.71 Chromium. Open Brave Browser, in menu bar click Brave -> About Brave.23 (latest version as of writing this post) Along the lines of the output it should read chromedriver. Check ChromeDriver version with brew info chromedriver.Your chromedriver version should match your Brave Browser web driver version.
0 Comments
Leave a Reply. |