提问人:deepakguna 提问时间:9/11/2023 更新时间:9/11/2023 访问量:23
在硒网格中启用基本身份验证后,测试无法与元素交互
Tests are not able to interact with the elements after enabling the basic auth in the selenium grid
问:
在网格中启用基本身份验证后,测试无法与元素交互。我已经在 eks v0.20.1 上运行的网格中启用了基本身份验证:
Unable to parse: <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>
org.openqa.selenium.json.JsonException: Unable to determine type from: <. Last 1 characters read: <
Build info: version: '4.11.0', revision: '040bc5406b'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '13.5', java.version: '17.0.6'
Driver info: driver.version: RemoteWebDriver
答:
0赞
deepakguna
9/11/2023
#1
会话也需要进行身份验证。
https://www.selenium.dev/documentation/grid/configuration/toml_options/#basic-auth-enabled
谢谢@Diemol
评论