Forum Discussion
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.
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.
- 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
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.
- mcp1116 years agoContributor
His reply only said ask more questions about the object. I'm not clear what questions to ask. Can you please clarify exactly what questions would help you to arrive at a solution?
Marsha_R wrote:
tristaanogre gave you the questions to ask in his last reply. Show that to the developer.
- Marsha_R6 years agoChampion Level 3
tristaanogre said this: "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."
Ask your developer that question. You can also show this whole thread as an explanation of what you are trying to do. Your developer can help you with your software and once you have that answer we can help you with TestComplete.
- mcp1116 years agoContributor
That's what I'm not clear about.
What exactly do you mean by "Where does that tooltip reside"?
What kind of answer are you looking for?
Marsha_R wrote:
tristaanogre said this: "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."
Ask your developer that question. You can also show this whole thread as an explanation of what you are trying to do. Your developer can help you with your software and once you have that answer we can help you with TestComplete.
- Marsha_R6 years agoChampion Level 3
The answer to that will be the location of the text that we are trying to help you compare. I'm not clear why you can't just go show tristaanogre 's comment to the developer.