Forums

Selenium with Crhome extension

Hello everyone,

Im trying to run an automation code with selenium on chrome and every time chrome opened a pop up appears which say i should disable extensions unless im devloper.

the pop-up doesnt let the code move foward to next command.

I know how to solve it in java, but what about Python?

Any ideas ? thanks.

I've never encountered this. How do you solve it in Java. Perhaps that would point me in the right direction for a Python fix.

hey,

thanks for answer.

this is how i solver it in java:

System.setProperty("webdriver.chrome.driver", "D:\\chromedriver.exe"); ChromeOptions options = new ChromeOptions(); **options.addArguments("--disable-extensions");** driver = new ChromeDriver(options);

You're probably looking for something like this, then. The Java API translates pretty cleanly to Python with mostly just the language differences and the CamelCase to underscores change.

from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument("--disable-extensions")
driver = webdriver.Chrome(chrome_options=options)

thanks, just tried it,

Keep getting the same problem.. Any other solution you can think of ?

When you say that there is a popup, how are you find this out on PythonAnywhere?