cancel
Showing results for 
Search instead for 
Did you mean: 

Two text boxes associated with a label caption, but in one the property is blank

Highlighted
Occasional Contributor

Two text boxes associated with a label caption, but in one the property is blank

Hello, here is an image of my application showing the LabelCaption Última Alt. and the two fields that I would like to record the data:

panel.png

Analyzing through the object browser the two fields (date field and time field), I present here the prints of both. For the time field, it comes with a blank value in the label caption property

labelcaption.pngnoLabelCaption.png

 

I already tried to use the aqObject.SaveObjectSnapshotToFile () method to save the two fields in a text file and try to use another editor to compare, because as far as I know, the test complete itself does not provide resources to compare, in this case, two VCL Object and see what field properties are common or help to find the fields that are associating with that LabelCaption

 

I already associated it a while ago with the Top property, which if I'm not mistaken is the vertical position of the window, however if it has two columns, this property will no longer help

 

In such a situation, how to proceed?

Thanks.


EDIT: before someone ask me why?
The goal is from a parent, search the children who have the property Label Caption = Última Alt. and store the property Text in a javascript object

3 REPLIES 3
Highlighted
Community Hero

Re: Two text boxes associated with a label caption, but in one the property is blank

Well, the problem you have is that even though you look at those two fields and say "date and time are both UltimaAlt", in reality, they are not.  The Object Browser is telling you that the UltimaAlt label belongs to the date field and the time field has no label.

 

Will it always be a date time pair that you are looking for?

 

 

Highlighted
Community Hero

Re: Two text boxes associated with a label caption, but in one the property is blank

Will it always be a date time pair that you are looking for?

And if the answer is positive then this will be a special case that your test code must handle.

 

P.S. Well, to keep your test code to remain generic, you may talk to developers and ask them to introduce a new hidden label and link this label to time field. Though it is up to you to estimate the chances your request will be accepted by Development and the time it will take to implement it.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
Community Manager

Re: Two text boxes associated with a label caption, but in one the property is blank

Thanks a lot, Marsha, Alex.

 

@joaobc do these replies answer your question? If so, please mark the best one as a solution.


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors