Forum Discussion
You wrote:
"I have seen that the wText property gives tooltip text. Then why does that not appear in the property list?"
So... which is it?
Sorry I don't understand your question
My question was "Why doesn't wText property show in Object spy?"
tristaanogre wrote:@You wrote:
"I have seen that the wText property gives tooltip text. Then why does that not appear in the property list?"
So... which is it?
- tristaanogre6 years agoEsteemed Contributor
Different objects have different properties available depending upon the type of object. Text editors and such have the "wText" property.
So, in your case, the tool-tip text may not be in the wText property... you may need to look elsewhere.The general point of all my answers is this: Go searching, go looking... use Object Spy to investigate components and such until you find where your tool-tip text is referenced. There are MANY different places that such text can show up depending upon how your application is developed. I don't know the details of your application so it's up to you to do the investigation. I can suggest different ways and places to look... but in short, Object Spy is your tool for the job and you'll just need to dig until you find it.
- tristaanogre6 years agoEsteemed Contributor
Again, I don't know your application. For me, it would be a time spent investigating the tool tip itself (perhaps it's in contentText or innerHTML), or perhaps it's in the object that spawns the tool tip... or could be in an entirely different object.
In other words: I cannot answer that question because I don't know your application.
Now, if you want folks here to be able to help you, we'll need screen shots of the Object Spy screen, including all advanced properties, of the object that supposedly has the tool tip, the tool tip object (if you have a spy screen for that), etc.... we need more info.
This is going to take "leg-work". You'll need to spend time investigateing properties of MANY objects to find your tool tip text.
- tristaanogre6 years agoEsteemed Contributor
OK... so, I see what you need to see.... But with those object spy screenshots... what EXACTLY are you spying? Can you indicate which component you have highlighted to get the spy?
And.. I repeat.... you may need to investigate MULTIPLE components on the screen to find, specifically, what you're looking for. Instinctually, looking at your screenshot, I would put the object spy on the red exclamation point on the far right side of the screen and see what comes up in object spy.
If that doesn't work, then I would use the point and fix and see if, when you hover over the exclamation point, you can then do an object spy on the tool tip itself.
If THAT doesn't work, then my next place to look would be to look at the entire window of Lane Information to see if there is a tool-tip property or something available there...
And if THAT doesn't work... I would keep on searching. It's there somewhere... but I repeat... you will need to do investigation. Put on your Sherlock Holmes hat and see what you can find.
And... if all else fails... contact your developer and ask "Hey, where does that tool-tip reside? I want to be able to validate it in the automation and I'm having a hard time finding it in the component objects."
- Marsha_R6 years agoChampion Level 3
tristaanogre means that you need to talk to your developer and ask more questions about this object. We don't know how your software works. Once your developer explains it, we can help you use TestComplete to test it.
- Marsha_R6 years agoChampion Level 3
Well, okay, but it would have saved a lot of time if you had just said you can't talk to the developers, right?
TestComplete can work with an .exe because its actions on the screen mimic a user. However, when you start wanting to assert or compare values and your tests are not coming out as expected, then that's beyond user experience and now you have to tell TestComplete what to do.
Why there isn't a wText property where you expect one, I don't know. You said it was in your documentation but perhaps that is wrong. If it's not automatic to add one in whatever code this is, then it's possible that the developer didn't do it. I test all sorts of web pages where there's no Id or Name set up so I have to find another way around to identify the object, or in my case I can ask the developer to add a better identifier.
When you said earlier that you had been through all the Object Spy properties, does that include digging down all the levels using the buttons on the right with ... ? See my attached example.
- mcp1116 years agoContributor
I've looked at all the properties in Object Spy and none has the tooltip text.
Then how to compare the tooltip text and determine if the test passed?
All the documentation says that tooltip text is in wText property
Then why is that not seen here?
tristaanogre wrote:Different objects have different properties available depending upon the type of object. Text editors and such have the "wText" property.
So, in your case, the tool-tip text may not be in the wText property... you may need to look elsewhere.The general point of all my answers is this: Go searching, go looking... use Object Spy to investigate components and such until you find where your tool-tip text is referenced. There are MANY different places that such text can show up depending upon how your application is developed. I don't know the details of your application so it's up to you to do the investigation. I can suggest different ways and places to look... but in short, Object Spy is your tool for the job and you'll just need to dig until you find it.
- mcp1116 years agoContributor
I have attached screenshots of the tooltip error which I need to capture and 3 screenshots showing all the object spy advanced properties.
I did not find a contentText or innerHtml property anywhere
Hope this helps.
- mcp1116 years agoContributor
tristaanogre wrote:
OK... so, I see what you need to see.... But with those object spy screenshots... what EXACTLY are you spying? Can you indicate which component you have highlighted to get the spy?
It is the red exclamation point
And.. I repeat.... you may need to investigate MULTIPLE components on the screen to find, specifically, what you're looking for. Instinctually, looking at your screenshot, I would put the object spy on the red exclamation point on the far right side of the screen and see what comes up in object spy.
If that doesn't work, then I would use the point and fix and see if, when you hover over the exclamation point, you can then do an object spy on the tool tip itself.
That also doesn't have any tooltip text
If THAT doesn't work, then my next place to look would be to look at the entire window of Lane Information to see if there is a tool-tip property or something available there...
That also doesn't have any tooltip text. Actually what's the logic of looking at the whole Lane Information window
And if THAT doesn't work... I would keep on searching. It's there somewhere... but I repeat... you will need to do investigation. Put on your Sherlock Holmes hat and see what you can find.
And... if all else fails... contact your developer and ask "Hey, where does that tool-tip reside? I want to be able to validate it in the automation and I'm having a hard time finding it in the component objects."
Can you clarify what you mean by "Hey, where does that tool-tip reside?
- mcp1116 years agoContributor
Exactly what questions should I ask the developer?
Marsha_R wrote:
tristaanogre means that you need to talk to your developer and ask more questions about this object. We don't know how your software works. Once your developer explains it, we can help you use TestComplete to test it.
- Marsha_R6 years agoChampion Level 3
tristaanogre gave you the questions to ask in his last reply. Show that to the developer.
Related Content
- 5 years agoFlo