Micro Focus QTP (UFT) Forums
Object Property when page refreshing - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Object Property when page refreshing (/Thread-Object-Property-when-page-refreshing)



Object Property when page refreshing - Vasantham - 04-01-2011

Hi,

I am beginner in QTP, and i am trying to automate a web application.

My Scenario is, once i enter few fields one pop up wil come and i have to fill and continue.. i dont have problem upto this.

Where i am getting problem is, once i finish the pop up window, page wil refresh to fetch background datas, at that time one web element wil display in the center of the page until background activities finishes. Even in the mean time of refreshing activities the further webedit box which need to filled also enabled, i dont want to use wait statements bcoz the time for refreshing differs so i cant use constant wait.

Can any one plz help me to sync with the webelement. I am using Descriptive Programming like Driver Script


RE: Object Property when page refreshing - manabh - 04-01-2011

Hi
You can check Page's readyState <> "complete" in a endless loop.


RE: Object Property when page refreshing - Arun Prakash - 04-01-2011

Put the existence check in For loop.
Kindly revert in case of any clarification.


RE: Object Property when page refreshing - Vasantham - 04-03-2011

Hi,

Thanks for ur help,
could u tell me the difference between the enabled state of a button and ready state of page

Thanks.