When I run the test remotely in chrome browser, I was faced with the error [type: STRING, value: Host header is specified and is not an IP address or localhost.] It is an issue https://github.com/web-iq/chrome-remote-debug/issues/1
To overcome it I should set the header = {host: 'localhost'}. The IP address is impossible to use in my case.
My driver configuration:
if (driver == 'docker') {
var driverConfig = {
type: 'chrome',
showDriverLog: true,
start: false,
host: 'karate-chrome.test.svcj',
port: 9222
};
karate.configure('driver', driverConfig);
}
Please, provide the solution for adding "Host" header into addOptions.