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

Method IsIELaunchURLAvailable

cpp/iedriver/BrowserFactory.cpp:241–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241bool BrowserFactory::IsIELaunchURLAvailable() {
242 LOG(TRACE) << "Entering BrowserFactory::IsIELaunchURLAvailable";
243 bool api_is_available = false;
244 HMODULE library_handle = ::LoadLibrary(IEFRAME_LIBRARY_NAME);
245 if (library_handle != NULL) {
246 FARPROC proc_address = 0;
247 proc_address = ::GetProcAddress(library_handle, IELAUNCHURL_FUNCTION_NAME);
248 if (proc_address == NULL || proc_address == 0) {
249 LOGERR(DEBUG) << "Unable to get address of " << IELAUNCHURL_FUNCTION_NAME
250 << " method in " << IEFRAME_LIBRARY_NAME;
251 } else {
252 api_is_available = true;
253 }
254 ::FreeLibrary(library_handle);
255 } else {
256 LOGERR(DEBUG) << "Unable to load library " << IEFRAME_LIBRARY_NAME;
257 }
258 return api_is_available;
259}
260
261void BrowserFactory::LaunchBrowserUsingIELaunchURL(PROCESS_INFORMATION* proc_info,
262 std::string* error_message) {

Callers 1

LaunchBrowserProcessMethod · 0.95

Calls 1

LOGClass · 0.50

Tested by

no test coverage detected