[Python] WebGL is disabled error when opening bing maps with python selenium?

Discussão em 'Python' iniciado por Stack, Julho 23, 2025.

  1. Stack

    Stack Membro Participativo

    i try to open bing maps using python selenium with this code:

    import os, sys
    from selenium import webdriver
    from selenium.webdriver.chrome.options import Options
    from selenium.webdriver.chrome.service import Service

    options = Options()
    options.add_argument("start-maximized")
    options.add_argument('--use-gl=swiftshader')
    options.add_argument('--enable-unsafe-webgpu')
    options.add_argument('--enable-unsafe-swiftshader')
    options.add_argument("--disable-3d-apis")
    options.add_argument('--disable-gpu')
    options.add_argument('--no-sandbox')
    options.add_argument('--disable-dev-shm-usage')
    options.add_argument("start-maximized")
    options.add_argument('--log-level=3')
    options.add_experimental_option("prefs", {"profile.default_content_setting_values.notifications": 1})
    options.add_experimental_option("excludeSwitches", ["enable-automation"])
    options.add_experimental_option('excludeSwitches', ['enable-logging'])
    options.add_experimental_option('useAutomationExtension', False)
    options.add_argument('--disable-blink-features=AutomationControlled')
    srv=Service()

    baseLink = "https://www.bing.com/maps"
    driver = webdriver.Chrome (service=srv, options=options)
    driver.get (baseLink)
    input("Press!")


    Worked fine for a long time but suddenly i get this error:

    [​IMG]

    How can i open bing maps using python and selenium?

    Continue reading...

Compartilhe esta Página