cancel
Showing results for 
Search instead for 
Did you mean: 

update object browser by script

SOLVED
Highlighted
Regular Contributor

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: update object browser by script

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.

Regards,
Yuriy Peshekhonov
Customer Care Engineer

View solution in original post

3 REPLIES 3
Highlighted
Community Leader

Re: update object browser by script

In object spy use Point and fix method to inspect context menu and similar on-fly object.

TC won't close the menu if using this method.

 

By script you can store an object of the context menu or put a breakpoint and explore data at this time.

Un sourire et ça repart

Highlighted
Regular Contributor

Re: update object browser by script

thx,

point and fix is fine for the menu, but it doesn't get me the items.

Navigation in the spy does not work, as mouse actions close the menu.

Highlighted

Re: update object browser by script

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.

Regards,
Yuriy Peshekhonov
Customer Care Engineer

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors