📜  如何在量角器中运行不安全的网站 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:48.038000             🧑  作者: Mango

代码示例1
capabilities: {
    browserName: 'chrome',
    chromeOptions: {
        // for ci test
        args: ['--headless', 'no-sandbox', "--disable-browser-side-navigation",
            "--allow-insecure-localhost"
            /// for https sites: ignore ssl on https://localhost...
            /// further args please see https://peter.sh/experiments/chromium-command-line-switches/
        ]
    }
}