Can anybody tell me how do i perform a GUIcheck on a virtual object

For example if i have a normal Push button OK
I will perform a GUI check by using function like

but if teh same object is a virtual object i cannot use these but i need to check these objects what to do?

I need it ******ly.