Click action is not working while test run

The action of clicking is captured and works in preview, but when I add that function in the main process it does not implement. Tried with Multiconfig as well as Web mode and Windows mode.
Kindly help to find the solution for click action to work in main process.