Chrome浏览器无法使用硒网格创建会话.它只是随机挂起以进行测试 [英] Chrome browser unable to create session with selenium grid. It simply hangs randomly for tests
问题描述
使用DBUS_SESSION_BUS_ADDRESS =/dev/null需要做什么.我在Windows计算机上使用带有中心的硒独立服务器,并尝试使用Mac的Chrome浏览器.我有70个测试,这些测试中枢都在node上创建了一个会话,激发了测试步骤,并且退出了浏览器.因此,有时不会创建chrome浏览器会话,而是随机创建,并且集线器必须等待直到超时发生.谢谢
What do i need to do to use the DBUS_SESSION_BUS_ADDRESS =/dev/null. I am using selenium standalone server with hub on windows machine and trying to use chrome browser of a mac. I have 70 tests for which hub creates a session on node , test steps are fired and browser is quit. So at times randomly at times for chrome browser session is not created and the hub has to wait until timeout occurs . Thanks
以下链接 https://github.com/SeleniumHQ/docker-selenium/issues/87 建议设置上述属性,但我不知道该怎么做.有人可以帮忙吗?
The following link https://github.com/SeleniumHQ/docker-selenium/issues/87 suggests to set the above mentioned property but i don't understand how to do this exactly. Can someone help?
推荐答案
在.bashrc中添加以下内容
Include the following in your .bashrc
export DBUS_SESSION_BUS_ADDRESS=/dev/null
并在命令行中执行以下操作
and do the following in your command line
$ . ~/.bashrc
这篇关于Chrome浏览器无法使用硒网格创建会话.它只是随机挂起以进行测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!