Hello Everybody,

How to maintain the page state in QTP.
My scenario is:
1. I opened a notepad file.

2. Entered some text in the notepad file.

3.And changed the font type and color of the notepad file.
And saved that.

4.Now next time when I will open the notepad it is showing
the changed font type and color, rather than the default
values.

Please provide the code.

Thanks,
Gaytri

Answer Posted / gaytri

Hi Santosh,

I think you are not getting my query. Actually what is
happening:
1. Suppose I opened a notepad file and wrote some text, now
here by default font type is courier and size is:10 and
changed the font type and size i.e. i changed the font type
to Curlz MT and size 14 and saved that file and closed that.
2. Now next time when i am opening the new notepad file and
writing some text there, then text is displayed in Curlz MT
and font is 14.

Now what I want here that when after saving the changed
font type and size, next time when i am opening new notepad
file then it should show font type as "Courier" and size
as "10".

I want to capture that original state i.e. when i will
capture the empty notepad file..is it possible that all the
properties of that page is capture automatically? Or I have
to capture each and every property of the notepad.

Thanks,
Gaytri

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Did the scripts need lot of maintenance? If yes, why?

3407


What are the types of environment variables in qtp?

643


hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

1680


How you can find length of array in qtp?

656


How to break the object spy ?

748






Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

1775


How did you resolve conflicts present in Object Repository?

1699


What are the types of data tables in qtp?

663


Explain the views in the QTP GUI?

708


Explain quicktest professional testing process?

636


How is a Step generator used in UFT?

756


Can we record an application running on a remote machine using qtp?

806


How to handle dynamic objects in quicktest professional?

589


How many types of actions are there in quicktest professional?

612


How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

3165