MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / Initialize

Method Initialize

cpp/webdriver-server/server.cc:81–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void Server::Initialize(const int port,
82 const std::string& host,
83 const std::string& log_level,
84 const std::string& log_file,
85 const std::string& acl) {
86 LOG::Level(log_level);
87 LOG::File(log_file);
88 LOG(INFO) << "Starting WebDriver server on port: '"
89 << port << "' on host: '" << host << "'";
90 this->port_ = port;
91 this->host_ = host;
92 if (acl.size() > 0) {
93 this->ProcessWhitelist(acl);
94 }
95 this->PopulateCommandRepository();
96}
97
98void Server::ProcessWhitelist(const std::string& whitelist) {
99 std::string input_copy = whitelist;

Callers 1

ServerMethod · 0.95

Calls 5

ProcessWhitelistMethod · 0.95
LOGClass · 0.70
LevelClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected