1. I have a WebList having 2 options "Yes and No"
2. If I choose "Yes" from the list, four links appear in the page
3. If I choose "No" from the list, the links dissappear.
I need to check whether the the list options are working or not.
Infact these list options are working fine.
But the problem in automating this is, even when the links are not visible in the page (means when "No" is selected from the list), the "visible" property of the links are "True". Even when I am clicking on the link (through QTP) when it is invisible, it navigates to the correct destination page.
I tried it by Descriptive Programming also, but it made no difference.
This is one scenario of my application (WebList-Link combination). There are others also like when I click on a "CheckBox", few "WebEdit" and "WebList" appear and when I uncheck the "CheckBox", the fieilds dissappear.
U r right. This looks strange.I hav checked all the link properties several times but it all are same in either case (be it visible or not). I wanted to share the screen shots but som problem occured in the attachment option and hence cud not do that.
@Page Checkpoint : It won't do coz the no. of links and othere properties are same for either case.
I tried every possible way, but all went into vein because no single property has different value in both cases. Can you imagine I hav even uploaded few scripts where this was needed to be checked, but without checking it to the client site.
Have you checked the run time object properties? In QTP 10.0 which is stated as "Native Properties". You checked it if you yet not checked. Also can you once again try to attach the screen shot.
The funny part is when these links are not even visible and I m clicking on it (Ofcourse through QTP), page navigates to correct destination.
Now, I want to know whether it is a defect in the development part of the application? I have gone through the Source code of the page for both the cases. There I found something like as follows:
For "Were Nonconformances found" dropdown, they hav called a VBscript function [OnChange()],and they hav checked the current value of the dropdown. If it is "Yes" they hav attached a StyleSheet(Some CSS stuff), and if "No" then they hav removed the same one.
Thats why for both the cases, all the elements are present in the page, but according to the selection made, it is getting attached or getting removed to/from the screen.
my doubt was right, those links are made invisible using stylesheet,yes it is from developement side only. what you can do is take the view source with both the option with Yes and one with No and then compare the changes in style for the link object.
possible way for identification could be by checking the class, style, type etc..