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

Method FindEdgeBrowserHandles

cpp/iedriver/BrowserFactory.cpp:1164–1180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1162}
1163
1164BOOL CALLBACK BrowserFactory::FindEdgeBrowserHandles(HWND hwnd, LPARAM arg) {
1165 std::vector<HWND>* handles = reinterpret_cast<std::vector<HWND>*>(arg);
1166
1167 // Could this be an Internet Explorer Server window?
1168 // 19 == "Chrome_WidgetWin_1\0"
1169 char name[20];
1170 if (::GetClassNameA(hwnd, name, 20) == 0) {
1171 // No match found. Skip
1172 return TRUE;
1173 }
1174
1175 if (strcmp("Chrome_WidgetWin_1", name) == 0) {
1176 handles->push_back(hwnd);
1177 }
1178
1179 return TRUE;
1180}
1181
1182BOOL CALLBACK BrowserFactory::FindChildWindowForProcess(HWND hwnd, LPARAM arg) {
1183 ProcessWindowInfo *process_window_info = reinterpret_cast<ProcessWindowInfo*>(arg);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected