'--disable-default-apps not working in selenium (python)

i added the --disable-default-apps argument but it still shows the application prompt

my code

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options

options = Options()
options.add_argument("--disable-default-apps")
driver.get("https://web.roblox.com/games/6872265039/")
driver.add_cookie("my cookie")
driver.refresh()

driver.find_element(By.XPATH, '//*[@id="game-details-play-button-container"]/button').click()


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source