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

Method IsLinkButton

cpp/iedriver/Alert.cpp:564–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564bool Alert::IsLinkButton(HWND button_handle) {
565 std::vector<wchar_t> button_window_class(100);
566 ::GetClassName(button_handle, &button_window_class[0], static_cast<int>(button_window_class.size()));
567 if (wcscmp(&button_window_class[0], L"Button") == 0) {
568 long window_long = ::GetWindowLong(button_handle, GWL_STYLE);
569 long button_style = window_long & BS_TYPEMASK;
570 return button_style == BS_COMMANDLINK;
571 }
572 return false;
573}
574
575bool Alert::IsSimpleEdit(HWND edit_handle) {
576 std::vector<wchar_t> child_window_class(100);

Callers

nothing calls this directly

Calls 2

GetClassNameClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected