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

Function clickAt

cpp/webdriver-interactions/interactions.cpp:690–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690LRESULT clickAt(WINDOW_HANDLE handle, long x, long y, long button)
691{
692 if (!handle) {
693 LOG(WARN) << "Window handle is invalid";
694 return ENULLPOINTER;
695 }
696
697 HWND directInputTo = (HWND) handle;
698
699 LRESULT result = mouseDownAt(handle, x, y, button);
700 if (result != 0) {
701 LOG(WARN) << "Mouse down did not succeed whilst clicking";
702 return result;
703 }
704
705 return mouseUpAt(handle, x, y, button);
706}
707
708static LRESULT mouseDoubleClickDown(WINDOW_HANDLE directInputTo, long x, long y)
709{

Callers 1

doubleClickAtFunction · 0.70

Calls 3

LOGClass · 0.70
mouseDownAtFunction · 0.70
mouseUpAtFunction · 0.70

Tested by

no test coverage detected