[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [qftestJUI] Checking which frame is in the front and which one is behind
Hi Eton, you cannot check that directly as Java doesn't give any information about the z-ordering of windows. However, qftestJUI tracks window activation events so it knows if an SUT window is currently active and uses that information to favour the active window over any other window that would otherwise be identical for component recognition. You can make use of that by manually creating a generic Window node for class java.awt.Frame that has no other information, no name, feature, class structure, geometry, nothing. Give it whatever ID you like, e.g. genericFrame. That node will match every open frame, but preferably the active frame. Now, if you have two frames A and B with titles "Frame A" and "Frame B", create two "Check text" nodes on the generic frame, one to check for "Frame A", one to check for "Frame B". If either check succeeds, that frame is above the other. If neither succeeds, either some other Frame is above both or no SUT Window is currently active. Best regards, Greg "Eton Cohen" <ec@?.com> writes: > There are 2 frames open. I want to "check" which frame is in the front > and which one is behind. Is there a way of doing that with qftestJUI? > > > Eton Cohen > _______________________________________________ > qftestJUI-list mailing list > qftestJUI-list@?.de > http://www.qfs.de/mailman/listinfo/qftestjui-list -- Gregor Schmid Gregor.Schmid@?.de Quality First Software GmbH http://www.qfs.de Tulpenstr. 41 Tel: +49 8171 919870 DE-82538 Geretsried Fax: +49 8171 919876
|