我有一个网页。当我首先打开该网页时,它要求服务器身份验证。提供服务器身份验证后,它允许我导航该网站。 我必须自动化该网页,但由于服务器身份验证,我无法继续前进。 我如何在 Geb 或 Web 驱动程序中处理此服务器身份验证
最佳答案
尝试使用这个:
http://username:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b1c1d0c2c2c6dec3d5f1c2d8c5d49fd2dedc" rel="noreferrer noopener nofollow">[email protected]</a>/page
而不是:
http://site.com/page
关于selenium - 如何使用 Geb/WebDriver 处理服务器身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19444161/