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

Method LaunchBrowserUsingIELaunchURL

cpp/iedriver/BrowserFactory.cpp:261–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void BrowserFactory::LaunchBrowserUsingIELaunchURL(PROCESS_INFORMATION* proc_info,
262 std::string* error_message) {
263 LOG(TRACE) << "Entering BrowserFactory::LaunchBrowserUsingIELaunchURL";
264 LOG(DEBUG) << "Starting IE using the IELaunchURL API";
265 HRESULT launch_result = ::IELaunchURL(this->initial_browser_url_.c_str(),
266 proc_info,
267 NULL);
268 if (FAILED(launch_result)) {
269 LOGHR(WARN, launch_result) << "Error using IELaunchURL to start IE";
270 std::wstring hresult_msg = _com_error(launch_result).ErrorMessage();
271 *error_message = StringUtilities::Format(IELAUNCHURL_ERROR_MESSAGE,
272 launch_result,
273 StringUtilities::ToString(hresult_msg).c_str(),
274 this->initial_browser_url().c_str());
275 }
276}
277
278bool BrowserFactory::IsCreateProcessApiAvailable() {
279 LOG(TRACE) << "Entering BrowserFactory::IsCreateProcessApiAvailable";

Callers 1

LaunchBrowserProcessMethod · 0.95

Calls 2

initial_browser_urlMethod · 0.95
LOGClass · 0.50

Tested by

no test coverage detected