Find HTML Editor in QTP

December 7th, 2009 by mehul.brahmbhatt § 3

Follow below steps to read and write contents from an HTML Editor if you are testing using QTP

Step 1: QTP by default can not find an HTML Editor so you have to add HTML Editor in object repository. It will add HTML Editor as a frame.

See below image for an example

HTML Editor

Step 2:  Below is an example of how to write contents in an HTML Editor. Write below line once you have added HTML Editor as an object.

Browser(“NewRelease”).Page(“Registration”).Frame(“Frame_2″).Object.write “Testing of add news page.”

Step 3: Below is an example of how to read contents from an HTML Editor.

fName = browser(” New Release”).Page(“ Registration “).Frame(“Frame_2″).WebElement(“testing”).Object.innerText

Tagged: , , ,

§ 3 Responses to “Find HTML Editor in QTP”

  • simi says:

    First of all. Thanks very much for your useful post.

    I just came across your blog and wanted to drop you a note telling you how impressed I was with the information you have posted here.

    Please let me introduce you some info related to this post and I hope that it is useful for software testing community.

    There is a good Software Testing resource site, Have alook

    http://SoftwareTestingNet.com

    simi

  • מאמר says:

    אתר המכיל מאמרים לשימוש חופשי . אתר המאמרים היחיד בישראל המאפשר לכותבים להוסיף פרסומות גוגל אדסנס אישיות במאמרים שהם עורכים וכך בנוסף להרוויח דולרים בנוסף לקישורים.

  • aldo says:

    Thanks for sharing the info. Very Useful.

  • § Leave a Reply

What's this?

You are currently reading Find HTML Editor in QTP at Digicorp.

meta

Share