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

Method IsPasswordEdit

cpp/iedriver/Alert.cpp:588–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588bool Alert::IsPasswordEdit(HWND edit_handle) {
589 std::vector<wchar_t> child_window_class(100);
590 ::GetClassName(edit_handle, &child_window_class[0], 100);
591
592 if (wcscmp(&child_window_class[0], L"Edit") == 0) {
593 long window_long = ::GetWindowLong(edit_handle, GWL_STYLE);
594 bool is_password = (window_long & ES_PASSWORD) == ES_PASSWORD;
595 return is_password;
596 }
597 return false;
598}
599
600BOOL CALLBACK Alert::FindDialogButton(HWND hwnd, LPARAM arg) {
601 Alert::DialogButtonFindInfo* button_info = reinterpret_cast<Alert::DialogButtonFindInfo*>(arg);

Callers

nothing calls this directly

Calls 1

GetClassNameClass · 0.85

Tested by

no test coverage detected