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

Method FindBrowserWindow

cpp/iedriver/BrowserFactory.cpp:1088–1106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086}
1087
1088BOOL CALLBACK BrowserFactory::FindBrowserWindow(HWND hwnd, LPARAM arg) {
1089 // Could this be an IE instance?
1090 // 8 == "IeFrame\0"
1091 // 21 == "Shell DocObject View\0"
1092 // 19 == "Chrome_WidgetWin_1"
1093 char name[21];
1094 if (::GetClassNameA(hwnd, name, 21) == 0) {
1095 // No match found. Skip
1096 return TRUE;
1097 }
1098
1099 if (strcmp(IE_FRAME_WINDOW_CLASS, name) != 0 &&
1100 strcmp(SHELL_DOCOBJECT_VIEW_WINDOW_CLASS, name) != 0 &&
1101 strcmp(ANDIE_FRAME_WINDOW_CLASS, name) != 0) {
1102 return TRUE;
1103 }
1104
1105 return EnumChildWindows(hwnd, FindChildWindowForProcess, arg);
1106}
1107
1108BOOL CALLBACK BrowserFactory::FindEdgeWindow(HWND hwnd, LPARAM arg) {
1109 // Could this be an EdgeChrome window?

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected