QTP : object is Visible OR Not on Web Page
Hi All, Some times we have to check that a object(WebElement) is exist on page or not. For this we use object exist = False property but when we run the script it gets failed While object is not showing in the Page. We think that there is something wrong. The reason behind why QTP is giving this because object is present in the page but not visible means it not displaying while it exist in HTML code. So for this we have to be understand the object property( object.currentstyle.display) there will be case some time object inherit the property from its parent or another parent element property to display in page . First we have to identify that object when it not showing/displaying in page.We have to check its display property Display property value we can get through like this rem disvalue disvalue =Browser(“Google”).Page(“Google”).Image(“Happy Holidays from Google!”).Object.currentStyle.display if disvalue =”block” then print...