Find HTML Editor in QTP

December 7th, 2009 by mehul.brahmbhatt § 1

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

Where am I?

You are currently viewing the archives for December, 2009 at Digicorp.