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

Method GetTopLevelWindowHandle

cpp/iedriver/Browser.cpp:558–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558HWND Browser::GetTopLevelWindowHandle() {
559 LOG(TRACE) << "Entering Browser::GetTopLevelWindowHandle";
560
561 HWND top_level_window_handle = NULL;
562 HRESULT hr = this->browser_->get_HWND(reinterpret_cast<SHANDLE_PTR*>(&top_level_window_handle));
563 if (FAILED(hr)) {
564 LOGHR(WARN, hr) << "Getting HWND property of IWebBrowser2 object failed";
565 }
566
567 return top_level_window_handle;
568}
569
570bool Browser::IsValidWindow() {
571 LOG(TRACE) << "Entering Browser::IsValidWindow";

Callers 11

CloseMethod · 0.95
OnAfterNewWindowMethod · 0.45
OpenNewBrowserTabMethod · 0.45
RestoreMethod · 0.45
SetFocusToBrowserMethod · 0.45
ExecuteInternalMethod · 0.45
ExecuteInternalMethod · 0.45
ExecuteInternalMethod · 0.45
ExecuteInternalMethod · 0.45
UploadFileMethod · 0.45
ExecuteInternalMethod · 0.45

Calls 1

LOGClass · 0.50

Tested by

no test coverage detected