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.
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.