Leahy
6 years agoContributor
Get text from popup warning
Hello,
I am trying to capture the text on a warning popup...
This code seems to get everything EXCEPT the highlighted text....any help would be apprieciated.
Without more information we won't be able to provide any assistance. We need examples of the code, your object browser for that object, any mapping you have done, Test Complete version, application type, etc... The screenshot doesn't provide any useful information to debug the issue.
Hello Carson,
I am new with Testcomplete, so I hope I understand what you are asking. This is a desktop application (with backend SQL servers and Dbs). I am using TestComplete Ver 14.0.317.7 x64. The code is in last post, I am attaching a screen capture of Object browser. Hope this helps.
Lee
OK, that gives us the methods for the object. However, simply from the hierarchy in the browser, I can see already that the individual message lines are not objects. There is nothing in the hierarchy that looks like one of those message records.
So, on that screen, go to the "Properties" tab and click the "View more members (Advanced view)" link to see all available properties. You'll need to examine those properties to see if there's something there that contains the messages. Look for something like "items" or "item list" or something like that.
Thanks Robert,
I just spent the last couple of hours pouring over the "Properties" (I also searched "Methods" and "Fields"). The text that I want to capture is nowhere to be found. I guess I will just have to use the window name...
thanks again for your help,
Lee
The text may not be immediately available in a property of that window. If there is a property like "items" that is an indexed array, it could be that "item[0]" contains the desired text.