Chrome browser unable to create session with selenium grid. It simply hangs randomly for tests

大兔子大兔子 提交于 2019-12-08 07:37:18

问题


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

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?


回答1:


Include the following in your .bashrc

export DBUS_SESSION_BUS_ADDRESS=/dev/null

and do the following in your command line

$ . ~/.bashrc


来源:https://stackoverflow.com/questions/36099142/chrome-browser-unable-to-create-session-with-selenium-grid-it-simply-hangs-rand

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!