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

Method SetProxySettings

cpp/iedriver/ProxyManager.cpp:102–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void ProxyManager::SetProxySettings(HWND browser_window_handle) {
103 LOG(TRACE) << "ProxyManager::SetProxySettings";
104 if (this->proxy_type_.size() > 0 && this->proxy_type_ != WD_PROXY_TYPE_SYSTEM) {
105 if (this->use_per_process_proxy_) {
106 LOG(DEBUG) << "Setting proxy for individual IE instance.";
107 this->SetPerProcessProxySettings(browser_window_handle);
108 } else {
109 if (!this->is_proxy_modified_) {
110 LOG(DEBUG) << "Setting system proxy.";
111 this->GetCurrentProxySettings();
112 this->SetGlobalProxySettings();
113 } else {
114 LOG(DEBUG) << "Proxy settings already set by IE driver.";
115 }
116 }
117 this->is_proxy_modified_ = true;
118 } else {
119 LOG(DEBUG) << "Using existing system proxy settings.";
120 }
121}
122
123Json::Value ProxyManager::GetProxyAsJson() {
124 LOG(TRACE) << "ProxyManager::GetProxyAsJson";

Callers 3

OnBrowserReattachMethod · 0.45
CreateNewBrowserMethod · 0.45

Calls 5

LOGClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected