Forum Discussion

Manfred_F's avatar
Manfred_F
Regular Contributor
4 years ago
Solved

update object browser by script

I'd like to view contents of an application's context menu. Using TC closes this context menu. Can I update the object browser by script e. g. every minute?
  • YuriPeshekhonov's avatar
    YuriPeshekhonov
    4 years ago

    Hi,

     

    If I understand correctly, the individual items are not selected using Object Spy, therefore you want to use the keyboard input to select an item. It looks like the mouse movement doesn't allow doing this. I find this quite strange actually. 

     

    In this case, you need to open the menu in your test, then you can call the Refresh method for the parent object of this menu (you can explore this in Object Spy), and then call the Keys action to simulate the keystrokes: Keys("[Down][Down][Enter]") to select a needed item.

     

    I hope this helps.