When using selenium-webdriver
, something attempts to bind to a port, listening for connections from the unspecified IPv6/IPv4 host (::
/ 0.0.0.0
). This triggers a firewall message.
I'd like to avoid this firewall message by forcing whatever this is to bind only to localhost
, but I can't find any clues about what this server is or how to configure it.
Example code which replicates the issue:
const webdriver = require('selenium-webdriver');
const driver = new webdriver.Builder().forBrowser('chrome').build();
setTimeout(() => {
driver.quit();
}, 10000);
On macOS, this shows the prompt:
Do you want the application “node” to accept incoming network connections?
Obviously choosing "deny" still allows the tests to run (since everything is local anyway), and after selecting this option the OS remembers the choice until Node is updated, but I'd like to lock-down the test so that this isn't an issue.
What is causing this? How can I configure it?