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

Method Initialize

cpp/iedriver/BrowserFactory.cpp:121–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void BrowserFactory::Initialize(BrowserFactorySettings settings) {
122 LOG(TRACE) << "Entering BrowserFactory::Initialize";
123 this->ignore_protected_mode_settings_ = settings.ignore_protected_mode_settings;
124 this->browser_attach_timeout_ = settings.browser_attach_timeout;
125 this->force_createprocess_api_ = settings.force_create_process_api;
126 this->force_shell_windows_api_ = settings.force_shell_windows_api;
127 this->clear_cache_ = settings.clear_cache_before_launch;
128 this->browser_command_line_switches_ = StringUtilities::ToWString(settings.browser_command_line_switches);
129 this->initial_browser_url_ = StringUtilities::ToWString(settings.initial_browser_url);
130 this->edge_ie_mode_ = settings.attach_to_edge_ie || this->ie_redirects_edge_;
131 this->ignore_process_match_ = settings.ignore_process_match;
132 this->ignore_zoom_setting_ = settings.ignore_zoom_setting || this->edge_ie_mode_;
133 LOG(DEBUG) << "path before was " << settings.edge_executable_path << "\n";
134 this->edge_executable_location_ = StringUtilities::ToWString(settings.edge_executable_path);
135 LOG(DEBUG) << "path after was " << StringUtilities::ToString(this->edge_executable_location_) << "\n";
136 this->html_getobject_msg_ = ::RegisterWindowMessage(HTML_GETOBJECT_MSG);
137
138 // Explicitly load MSAA so we know if it's installed
139 this->oleacc_instance_handle_ = ::LoadLibrary(OLEACC_LIBRARY_NAME);
140}
141
142void BrowserFactory::ClearCache() {
143 LOG(TRACE) << "Entering BrowserFactory::ClearCache";

Callers

nothing calls this directly

Calls 1

LOGClass · 0.50

Tested by

no test coverage detected