The work with two arms leads to one obvious way: Cutting the stem with a pair of sicorss.
However, this might not be the fastest way for harvest. The following videos show some human stategies for detaching:
In both videos the stem which is still connected to the fruit is too long. Another possible strategy:
The second video shows a cucumber with a damaged tip. This is also a problem for further processing of the cucumbers.