Python Forum

Full Version: Selenium, how to open url in current browser?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
browser = webdriver.Chrome()
This code makes new chrome's windows, but its sucks because there are no my extansions like uBlock etc. When im opening a random page, there is tons of ads. How can i open any site with my already opened chrome? Just make new tab and open url
Selenium load a new(own) version of Chrome.
Then none of extension is loaded,because it's a clean version.

You can load extension though --load-extension,will also need to make a manifest.json file.
Read more about here.
Have to think if this is needed,usually use Selenium for testing and web-scraping not for surfing where ads it's a problem.