gpt4 book ai didi

Tests are not able to interact with the elements after enabling the basic auth in the selenium grid(在硒网格中启用基本身份验证后,测试无法与元素交互)

转载 作者:bug小助手 更新时间:2023-10-22 17:34:31 26 4
gpt4 key购买 nike



Tests are not able to interact with the elements after enabling the basic auth in the grid. I have enabled the basic auth in the grid running on eks v0.20.1:

在网格中启用基本身份验证后,测试无法与元素交互。我已经在eks v0.20.1上运行的网格中启用了基本身份验证:


https://github.com/SeleniumHQ/docker-selenium/blob/selenium-grid-0.20.1/charts/selenium-grid/values.yaml#L13

https://github.com/SeleniumHQ/docker-selenium/blob/selenium-grid-0.20.1/charts/selenium-grid/values.yaml#L13


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

更多回答
优秀答案推荐

Session needs to be authenticated as well.

会话也需要进行身份验证。


https://www.selenium.dev/documentation/grid/configuration/toml_options/#basic-auth-enabled

https://www.selenium.dev/documentation/grid/configuration/toml_options/#basic-已启用身份验证


Thank you @Diemol

谢谢@Diemol


更多回答

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com