This has been a long standing problem between our application and TestPartner. I am only now butting heads with it.
In our custom Oracle application which uses java through an IE window, there is a popup alert window. This window displays text when there is something particular about the data you are viewing that should be highlighted.
TP identifies this window with the following properties;
Application - IEXPLORE.EXE
Index - 1
Type Name - JavaEditBox
This is a modal window.
I cannot capture the text in this window.
I worked with Compuware on this issue sometime ago and was told this was a bug and there was no fix.
Has anyone else come across this problem and found a solution?
Yeap.. this is a little basic..
When I use the second suggestion, the captured text is the text that lies behind the alert window. Not the text contained in the alert window.
Sometimes with TP, I'll have try different things to get it to interact with the actual object I want. Besides doing the .Attach, I'll .SetFocus and even perform a mouseclick on the actual object itself, just a simple object.click 1,1
then go and grab the text.
Also, if the editbox is embedded in another java object, try grabbing the text out of the higher object. It won't be as targeted because it'll grab other text, but then you'll just have to do some string parsing.
If you're app (or an example) is accessible outside your internal network/domain, I'd be happy to poke around and try to help figure something out. Let me know what you think. In the meantime, let me talk to some other engineers within my company to se eif they have any ideas.