F
F
fandorin_official2019-12-19 18:13:53
Python
fandorin_official, 2019-12-19 18:13:53

How can I disable/toggle Selenium driver settings?

Before running the tests, there are preliminary driver settings, specifically the following:

capabilities = DesiredCapabilities.FIREFOX.copy()
capabilities["platform"] = "WINDOWS"
profile = FirefoxProfile()
profile.set_preference("intl.accept_languages", "ru")
driver = webdriver.Remote(desired_capabilities=capabilities, command_executor=selenium_grid_url, browser_profile=profile)

Is it possible, and if so how, to change the settings during the tests?
Specifically, you need to disable/change this parameter:
profile.set_preference("intl.accept_languages", "ru")

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question