Я пытаюсь настроить Selenium Grid с концентратором в Windows10 и узлом в Ubuntu.Я установил Ubuntu в Virtualbox (работает в моем ХОСТЕ win10).Когда я пытаюсь зарегистрировать узел, появляется сообщение об ошибке «Не удалось найти IP-адрес без обратной связи для этой машины».Я понятия не имею по этому вопросу.Пожалуйста, помогите решить.
Подобный вопрос я нашел на форуме, но нет четкого решения.
При подключении к локальной сети, появляется следующее сообщение.
org.openqa.selenium.WebDriverException: Cound not find a non-loopback ip4 address for this machine
Если я переключаюсь на Wi-Fi, возникает другая ошибка, как показано ниже.
-VirtualBox:~/Documents$ java -Dwebdriver.gecko.driver="/home/mehamgn/Documents/drivers/geckodriver/" -jar selenium-server-standalone-3.12.0.jar -role node -nodeConfig grid_node.json
18:54:46.792 INFO [GridLauncherV3.launch] - Selenium build info: version: '3.12.0', revision: '7c6e0b3'
18:54:46.860 INFO [GridLauncherV3$3.launch] - Launching a Selenium Grid node on port 5555
2018-05-24 18:54:51.656:INFO::main: Logging initialized @14625ms to org.seleniumhq.jetty9.util.log.StdErrLog
18:54:55.286 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 5555
18:54:55.294 INFO [GridLauncherV3$3.launch] - Selenium Grid node is up and ready to register to the hub
18:54:55.383 INFO [SelfRegisteringRemote$1.run] - Starting auto registration thread. Will try to register every 10000 ms.
18:54:55.388 INFO [SelfRegisteringRemote.registerToHub] - Registering the node to the hub: http://localhost:4444/grid/register
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.openqa.selenium.json.BeanToJsonConverter (file:/home/mehamgn/Documents/selenium-server-standalone-3.12.0.jar) to method sun.reflect.annotation.AnnotatedTypeFactory$AnnotatedTypeBaseImpl.getDeclaredAnnotations()
WARNING: Please consider reporting this to the maintainers of org.openqa.selenium.json.BeanToJsonConverter
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
18:55:00.088 INFO [SelfRegisteringRemote$1.run] - Couldn't register this node: Error sending the registration request: Failed to connect to localhost/127.0.0.1:4444
18:55:10.159 INFO [SelfRegisteringRemote$1.run] - Couldn't register this node: The hub is down or not responding: Failed to connect to localhost/127.0.0.1:4444
18:55:20.171 INFO [SelfRegisteringRemote$1.run] - Couldn't register this node: The hub is down or not responding: Failed to connect to localhost/127.0.0.1:4444
18:55:30.181 INFO [SelfRegisteringRemote$1.run] - Couldn't register this node: The hub is down or not responding: Failed to connect to localhost/127.0.0.1:4444
18:55:40.185 INFO [SelfRegisteringRemote$1.run] - Couldn't register this node: The hub is down or not responding: Failed to connect to localhost/127.0.0.1:4444
18:55:50.198 INFO [SelfRegisteringRemote$1.run] - Couldn't register this node: The hub is down or not responding: Failed to connect to localhost/127.0.0.1:4444
файл nodeConfig JSON
{
"capabilities":
[
{
"browserName":"firefox",
"version":"60.0.1",
"maxInstances":1
},
{
"browserName":"chrome",
"version":"66.0.3359.181",
"maxInstances":1
}],
"port":5555,
"hubHost":"192.168.2.8",
"hubPort":4444,
"registerCycle":10000,
"register":true,
"timeout":0,
"maxSessions":2
}