节点js使用警报()。authenticateAs

问题描述:

使用node.js版本的硒我需要输入auth信息到警报。我没有成功地使用'authenticateAs'函数,任何人都没有任何使用这个函数的例子。节点js使用警报()。authenticateAs

我不能简单地添加用户名:密码的URL的开头,因为URL来自重定向来

我真的很喜欢用这个:https://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/lib/webdriver_exports_AlertPromise.html#authenticateAs

+0

你试过的代码是什么? –

基本HTTP认证没有按”似乎直接受WebDriver支持。根据the conversation here,它被推到规范的v2(v1仍在实施过程中)。