Ask a Question

Finding Java Tags

SuperTester
Contributor

Finding Java Tags

Hey Guys,

 

I'm struggling to find a "Tag" property using native Java methods in Test Complete.

I'm testing an application that uses Matlabs uicontrol methods and I can extract some properties, but not all.  For example,  for a textfield as written in the code:

uicontrol('Style','edit',...
'Parent',Box,...
'Tag','uniqueTag',...
'Units','normalized',...
'FontSize',12,...
'TooltipString','exampleToolTip',...
'String',num2str(dimension),...
'BackgroundColor','w',...
'HorizontalAlignment','left',...
'Enable',true,...
'Callback',@callback)

 

I can use native java methods from Test Complete to extract properties such as the actual  text in the texfiled using "getText()" and even get the tooltip using "getToolTipText()". Since I can extract content such as the tooltip, I think I should be able to find the Tag. Is there a command or technique for this?

 

I was curious if maybe this is a private property, but do not see it mentioned in the matlab documentation: https://www.mathworks.com/help/matlab/ref/matlab.ui.control.uicontrol-properties.html

 

Note: Not sure if its applicable or not, but  in order for Test Complete to recognize objects in the application, MSAA has to be enabled. Even with this enabled, a lot of properties are not discovered. Hence the native methods.

 

 

Thanks in advance!

1 REPLY 1
Rubin254
Occasional Visitor

Anyone got a thought?

 

My Estub

cancel
Showing results for 
Search instead for 
Did you mean: