2017-10-11 60 views
0

使用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

你試過的代碼是什麼? –

回答

0

基本HTTP認證沒有按」似乎直接受WebDriver支持。根據the conversation here,它被推到規範的v2(v1仍在實施過程中)。