cancel
Showing results for 
Search instead for 
Did you mean: 

how to fetch value from msk object

SOLVED
pankajjain2050
Contributor

how to fetch value from msk object

Our application has few  fields which gets saved (default name given by test complete) with msk prefix (i assume it means masked). We are able to read value with naked eyes and it adds hyphen as we type (eg: phone number 647-xxx-xxxx). wText is what I used for txt prefix fields to read value but it does not work for msk prefix objects. Any suggestions.

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Marsha_R
Community Hero

Re: how to fetch value from msk object

They are not "TestComplete properties".  They are properties of your application's object and they exist whether or not you are using TestComplete.  TestComplete is simply allowing you to view what is there.  If there is no text option there, TestComplete cannot add one for you.

 

You need to talk to your developers about what is needed for the test and work with them to expose the properties that you need.  Then you can use them in TestComplete.

View solution in original post

pankajjain2050
Contributor

Re: how to fetch value from msk object

Got it. Thanks much for your time and contribution.

View solution in original post

12 REPLIES 12
Marsha_R
Community Hero

Re: how to fetch value from msk object

Let's see the name mapping for that object.

pankajjain2050
Contributor

Re: how to fetch value from msk object

Attaching how the object looks like in our application (Its a Desktop VB application) and the name mapping from test complete.

Marsha_R
Community Hero

Re: how to fetch value from msk object

Try using Object Spy on that field and let's see the extended properties

pankajjain2050
Contributor

Re: how to fetch value from msk object

Attached the extended properties. Thanks

Marsha_R
Community Hero

Re: how to fetch value from msk object

 

 

 

So here's what's causing your problem - the (Non-Browsable) fields.  TestComplete is simply reading what's defined in the application.  You'll need to talk to your developers about exposing those values somehow.  

 

 

 

properties.GIF

 

pankajjain2050
Contributor

Re: how to fetch value from msk object

The value "7894764651" is displayed in property "NativeVBObject". Isn't there any way we can fetch the value of this property?

Marsha_R
Community Hero

Re: how to fetch value from msk object

See the ... button to the right of that field?  Click on that and you'll be able to drill down and see if there's a text field available.

pankajjain2050
Contributor

Re: how to fetch value from msk object

On clicking ... , it shows me another property which is "Enabled" with value "True". Nothing else.

I was thinking if we can get value of nativeVBObject property like we do "element.getAttribute(attributeName)" in selenium. Something like Aliases.element.getAttribute("nativeVBObject");

Marsha_R
Community Hero

Re: how to fetch value from msk object

TestComplete is showing you the attributes.  That's what this is.  If it's not in the view, then you can't just magically code for it and have it appear.  

 

Talk to your developers and get them to expose a text field for you.  

New Here?
Join us and watch the welcome video:
Announcements