How can I right-click on a Windows List object?
Question ID: 107548

I need to be able to right-click on a WinList object in my script, but it only records a regular click. Is there any way to do a right-click of the mouse button in UFT?

Marked as spam
Posted by (Questions: 89, Answers: 4)
Asked on April 18, 2017 7:42 pm
Answers (1)
Private answer

If you take a look at the UFT help for the WinList object, you will see that you can use addtional arguments with a Click method to specify the right mouse button instead of the default left. Modify your statement to something like this:

Window(''XYZ'').WinList(''Whatever'').Click micNoCoordinate, micNoCoordinate, micRightBtn

The last argument is the mouse button you want to use.

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on April 18, 2017 7:45 pm

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

Scroll to Top