Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/477.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 已使用推荐的dragrator.conf.js进行了修改,但仍然无法绕过基本身份验证程序_Javascript_Typescript_Automation_Serenity Js_Testautomationfx - Fatal编程技术网

Javascript 已使用推荐的dragrator.conf.js进行了修改,但仍然无法绕过基本身份验证程序

Javascript 已使用推荐的dragrator.conf.js进行了修改,但仍然无法绕过基本身份验证程序,javascript,typescript,automation,serenity-js,testautomationfx,Javascript,Typescript,Automation,Serenity Js,Testautomationfx,感谢您提供有关修复弹出式凭证()的解决方案。我也尝试在我的dragrator.conf.js上做同样的事情 const { Authenticator } = require('authenticator-browser-extension'); exports.config = { capabilities: { browserName: 'chrome', chromeOptions: { extensions: [ Authe

感谢您提供有关修复弹出式凭证()的解决方案。我也尝试在我的dragrator.conf.js上做同样的事情

const { Authenticator } = require('authenticator-browser-extension');    
exports.config = {
capabilities: {
    browserName: 'chrome',
    chromeOptions: {
        extensions: [
            Authenticator.for('username', 'password').asBase64()
        ]
    }
},
}
但是,当我试图执行脚本时,仍然无法“绕过”基本身份验证。 我使用了83版的chromedriver

你好,林维克

编辑 我已附上下面弹出窗口的屏幕,供您参考。我还尝试使用browser.switchto().alert().authenticates(),但脚本说这不是警报