Tag: 流氓

Chrome 59和Selenium / Fluentlenium的基本身份validation

Chrome 59已取消对https:// user:password@example.comurl的支持 。 我有一个使用此function的测试,现在已经坏了,所以我试图用等待认证弹出窗口的版本替换它并填写详细信息。 但以下内容在Chrome上不起作用(它没有将auth弹出窗口视为警报): alert().authenticateUsing(new UserAndPassword(“test”, “test”)); 仅限selenium的版本具有相同的问题: WebDriverWait wait = new WebDriverWait(getDriver(), 10); Alert alert = wait.until(ExpectedConditions.alertIsPresent()); alert.authenticateUsing(new UserAndPassword(“test”, “test”)); (基于此处给出的答案: 如何使用Java处理Selenium WebDriver的身份validation弹出窗口 ) 我可以看到在FireFox中处理此问题的几种解决方法,但Chrome没有。 有没有替代方法?