[英]Username and Password not being entered for Authentication popup using ntlm plugin
在您的測試中您可以直接使用它,無需任何插件:
cy.visit('https://username:password@yourwebsite.net')
或者,如果您想使用 env 變量作為用戶名和密碼,您可以執行以下操作:
cy.visit('https://' + Cypress.env('username') + ':' + Cypress.env('password') + '@yourwebsite.net')
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.