Dynamic rich text editor, how to DP? - 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: Dynamic rich text editor, how to DP? (/Thread-Dynamic-rich-text-editor-how-to-DP) |
Dynamic rich text editor, how to DP? - haiintel - 07-25-2008 Hi all, please help me. I have a web page containing a dynamic rich text editor, loaded by javascript each time called, and I don't know how to set data for it. When I try record, QTP doesn't recognize it. I've attached the html file, please have a look and help me. Thanks a lot indeed. RE: Dynamic rich text editor, how to DP? - gammaflare - 07-27-2008 Try using getelementsbytagname() and getelementsbyid() function......u will find information on how to use them on MSDN......just type those function names in the search ................ RE: Dynamic rich text editor, how to DP? - haiintel - 07-29-2008 Hi, Thanks Gammaflare for your answer. I found yahoo compose mail page is like ly with the site I'm am trouble in. And my DP is: ---------------------------------------------------- Code: Dim all_InputElements And I found the answer is Code: <TEXTAREA class=composecolumn id=composeArea style="PADDING-RIGHT: 0px; DISPLAY: none; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; PADDING-TOP: 5px" tabIndex=6 name=Content></TEXTAREA> ---------------------------------------------------- Code: With Browser("title:=Compose(.*)").Page("title:=Compose(.*)") What am I wrong? Pls help me. RE: Dynamic rich text editor, how to DP? - haiintel - 07-30-2008 Hi all, I have found the way to deal: Code: Dim all_InputElements Thanks everybody a lot for helping me. RE: Dynamic rich text editor, how to DP? - cashgiga - 01-15-2009 Very Simple Method Use below format for all unrecognized Text editors: Code: Browser("something").Page("something").Frame("Frame").WebElement("micclass:=WebElement","html tag:=BODY").object.innertext = "I have found a way to deal with Text editors" |