AscentialTest Support Hub

Path for an object …

 

Notifications

Clear all

Path for an object that is both PbTable and PbForm



1

Posts


1

Users


0

Reactions


34.2 K

Views

(@gordonweil)
Active Member

Joined: 10 years ago
Posts: 2

Topic starter
 

I have a PowerBuilder datawindow that AscentialTest identifies as a PbTable when data is present, and a PbForm when the datawindow is empty.

The App Object Editor field for Object Class allows only one class to associate with the path. Since I needed to identify the datawindow using two classes it was not clear how to define a path that would identify the object both when it was empty and when it was not.

Brian found the following solution: Pick one of the classes for the App Object Editor field labeled Object Class, and specify the other object class in the path. The resulting path statement takes up 2 lines in the Path section of the App Object Editor tab. My path statement looks like the following, with Object Class set to PbTable:

[below PbLabel[@Text like “*utrients:”]]
PbForm [below PbLabel[@Text like “*utrients:”]]



   

Quote

Share:

Can’t Find An Answer in the Forum?

Contact Our Team