Micro Focus QTP (UFT) Forums
qtp 11, Unable to prove the disappearance ofdynamic objects displayed on same screen. - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: qtp 11, Unable to prove the disappearance ofdynamic objects displayed on same screen. (/Thread-qtp-11-Unable-to-prove-the-disappearance-ofdynamic-objects-displayed-on-same-screen)



qtp 11, Unable to prove the disappearance ofdynamic objects displayed on same screen. - priyaang - 03-23-2014

I use QTP 11, Windows 7, IE 8.
In my application, there is a scenario that there are 3 webelements (like payrol, monthly, Annual). For each webelement that we select, a set of fields (webelements) are displayed below the weblement in the same screen. (ie., when a different webelement is clicked from the previous one, the fields corresponding to the previous webelement disappears and the fields corresponding to the new webelement appears).

So when I validate whether the fields corresponding to the non-selected webelement are not displayed, am getting the message "fields are DISPLAYED" which shoulnt be the case.

Please help me on how to handle this dynamic scenario.


RE: qtp 11, Unable to prove the disappearance ofdynamic objects displayed on same screen. - supputuri - 03-24-2014

ok, try out this.

Check for the x,y values of the webelement(which should not display), sure that they will be either 0,0 or negative values when they are disappered from the page.

Please let me know the outcome.