Micro Focus QTP (UFT) Forums
Script for Waiting till a text changes - 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: Script for Waiting till a text changes (/Thread-Script-for-Waiting-till-a-text-changes)



Script for Waiting till a text changes - anushreebehura - 02-28-2013

Hi Everyone,

Please find below is the scenario.

Launching an application.
Filling the required inputs.
After filling the inputs and clicking on the Apply Button the main window name changes like:

Before pressing on Apply Button Its MARKET DATA FINDER : STANDARD.
After pressing the Apply Button it becomes MARKET DATA FINDER : STANDARD *
And once all the data are uploaded then again it goes back to MARKET DATA FINDER : STANDARD.

I need to find the time duration for uploading the data...so i need to script this condition.

Could anyone help me with this.
Thanking you in advance. Smile


RE: Script for Waiting till a text changes - basanth27 - 03-01-2013

Interesting. Lets see how we can manually achieve this task,

1. I will use my timer to note down the time before i click on Apply button.
2. I will note down the time once it becomes STANDARD *
3. I Will stop my timer when the DATA Finder becomes STANDARD.
4. I Will then substract the time from step3 with the time from step 1 and find the total time taken.

How easy is it to script? Smile There are enough clues in the form keywords, so i encourage you to give it a try Smile


RE: Script for Waiting till a text changes - anushreebehura - 03-01-2013

Hi,

Thanks for the reply.
Am measuring the time difference with the help of Mercury Timer.
So scripting that is not an issue for me. But of course I need some help in scripting the behaviour change. Am unable to use GetRoProperty as it changes very quickly.