Forum Discussion
I asked a developer and we typically use a 'Display' property as the first display property and then some Javascript on the top to show/hide.
TestComplete has seemingly relevant properties like Enabled, Exists, Visible and VisibleOnScreen but I'm not sure how it determines them and none work in my test scenario.
Thanks for your response.
"Exist" returns true if the object can actually be found in the object tree. False if it cannot.
"Enabled" and "Visible" are determine more based upon attribute settings of the UI component. I'm not certain of the algorithms used to make that determination but it's possible that the methodology that your developers are using are not triggering the proper attributes.
Another possibility - If there's JavaScript that runs on top, it could be possible that the page loads as "complete" but the JavaScript could still be running. So, this could be a timing issue where the component may not be marked as "Visible = false" right away and so it identifies as Visible.
So, the answer to your problem is this: You will need to do some in depth investigation of your components to determine either whether the issue is due to timing OR if you need to use some alternative means to determine "visibility" based upon how your developers implemented the component.
Related Content
Recent Discussions
- 20 hours agovladd1