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

Function getChildWindow

cpp/webdriver-interactions/interaction_utils.cpp:48–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46#define LONGEST_NAME 25
47
48HWND getChildWindow(HWND hwnd, LPCTSTR name)
49{
50 TCHAR pszClassName[LONGEST_NAME];
51 HWND hwndtmp = GetWindow(hwnd, GW_CHILD);
52 while (hwndtmp != NULL) {
53 ::GetClassName(hwndtmp, pszClassName, LONGEST_NAME);
54 if (lstrcmp(pszClassName, name) == 0) {
55 return hwndtmp;
56 }
57 hwndtmp = GetWindow(hwndtmp, GW_HWNDNEXT);
58 }
59 return NULL;
60}

Callers

nothing calls this directly

Calls 1

GetClassNameClass · 0.85

Tested by

no test coverage detected