Forum Discussion

DainiusA's avatar
DainiusA
Contributor
5 years ago
Solved

Log version number in an app

Hello,

 

I am new to the scripting so sorry for this kind of questions, i am trying to log the current version of the desktop app, but can't find a way how to do it.

So i have an app that has a version (picture Version.png). The i try to select it, i can only select the whole line and that makes my object look in NameMapping like this:["Sys"]["Uvs_WinPos"]["HwndSource_Cashier_480x320"]["Cashier_480x320"]["ActiveItem"]["TextblockVersija10740429807"].

 

And then i made a script that checks that version contains the desired Text: ["Uvs_WinPos"]["HwndSource_Cashier_480x320"]["Cashier_480x320"]["ActiveItem"]["TextblockVersija10740429807"], "Text", cmpStartsWith, "Versija:");

 

But the i change the version i am getting this kind of error: Unable to verify a value with the property checkpoint, because the target object does not exist. 11:21:31 Normal 0.00.

 

So how can i get the version number from that block no matter what it is and log it ?

 

Best regards,

Dainius