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

Method FindIEBrowserHandles

cpp/iedriver/BrowserFactory.cpp:1146–1162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1144}
1145
1146BOOL CALLBACK BrowserFactory::FindIEBrowserHandles(HWND hwnd, LPARAM arg) {
1147 std::vector<HWND>* handles = reinterpret_cast<std::vector<HWND>*>(arg);
1148
1149 // Could this be an Internet Explorer Server window?
1150 // 25 == "Internet Explorer_Server\0"
1151 char name[25];
1152 if (::GetClassNameA(hwnd, name, 25) == 0) {
1153 // No match found. Skip
1154 return TRUE;
1155 }
1156
1157 if (strcmp("Internet Explorer_Server", name) == 0) {
1158 handles->push_back(hwnd);
1159 }
1160
1161 return TRUE;
1162}
1163
1164BOOL CALLBACK BrowserFactory::FindEdgeBrowserHandles(HWND hwnd, LPARAM arg) {
1165 std::vector<HWND>* handles = reinterpret_cast<std::vector<HWND>*>(arg);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected