07th Dec 2009
Find HTML Editor in QTP
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

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
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

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
Posted by mehul.brahmbhatt under
QA
1 Comment »