Что означает эта ошибка?Кажется, я не могу найти что-то еще по этому поводу ... У меня есть chromedriver
и selenium-server-standalone
в папке bin
в корне.Заранее спасибо
Starting selenium server... started - PID: 33239
[Sample Tests] Test Suite
=============================
Running: Google Header
INFO Request: POST /wd/hub/session
- data: {"desiredCapabilities":{"browserName":"chrome","javascriptEnabled":true,"acceptSslCerts":true,"platform":"ANY","chromeOptions":{"args":["start-maximized"]},"name":"Sample Tests"}}
- headers: {"Content-Type":"application/json; charset=utf-8","Content-Length":179}
ERROR Response 500 POST /wd/hub/session (4666ms) { value:
{ message: 'Cannot define class using reflection',
error: 'unknown error' },
status: 13 }
Error retrieving a new session from the selenium server
Connection refused! Is selenium server started?
{ value:
{ message: 'Cannot define class using reflection',
error: 'unknown error' },
status: 13 }
nightwatch.json:
{
"src_folders" : ["tests"],
"output_folder" : "reports",
"custom_commands_path" : "",
"custom_assertions_path" : "",
"page_objects_path" : "",
"globals_path" : "",
"selenium" : {
"start_process" : true,
"server_path" : "./bin/selenium-server-standalone-3.8.1.jar",
"log_path" : "",
"port" : 4444,
"cli_args" : {
"webdriver.chrome.driver" : "./bin/chromedriver"
}
},
"test_settings" : {
"default" : {
"launch_url" : "http://localhost",
"selenium_port" : 4444,
"selenium_host" : "localhost",
"silent": true,
"screenshots" : {
"enabled" : false,
"path" : ""
},
"desiredCapabilities": {
"browserName": "chrome",
"javascriptEnabled" : true,
"acceptSslCerts" : true,
"chromeOptions" : {
"args" : ["start-maximized"]
}
}
}
}
sample_tests.js (проверка заполнителя при настройке)
module.exports = {
'Google Header'(client) {
client
.url('http://www.google.com')
.waitForElementVisible('.header h1')
.expect.element('.main').to.not.be.present;
client.end();
}
}