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