Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic rich text editor, how to DP?
#4
Solved: 12 Years, 10 Months, 2 Weeks ago
Hi all,
I have found the way to deal:
Code:
Dim all_InputElements
Set all_InputElements=Browser("title:=Compose(.*)").object.Document.getelementsbytagname("IFRAME")
Dim single_Element

For each single_Element in all_InputElements
If single_element.id="compose_editorArea" Then
Print single_element.outerhtml
    single_element.contentWindow.document.body.innerHTML = "tinh ne"
    Print content
End If
Next

Thanks everybody a lot for helping me.
Reply


Messages In This Thread
RE: Dynamic rich text editor, how to DP? - by haiintel - 07-30-2008, 03:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamic obj rep - get text in the class (html) marcio cravo moreira 0 2,397 05-26-2015, 06:58 PM
Last Post: marcio cravo moreira
  Does QTP supprt online diagram editor dhanya 0 1,749 05-29-2014, 02:55 PM
Last Post: dhanya
  Read text from text file and save it into a variable in qtp arpan 3 14,006 06-19-2013, 08:34 PM
Last Post: arpan
  Need to compare two text files - ignoring some text nelly27281 2 5,087 09-09-2012, 12:09 PM
Last Post: freeboynil
  Finding specific text in a text string janriis 3 6,119 10-08-2010, 04:00 PM
Last Post: KavitaPriyaCR

Forum Jump:


Users browsing this thread: 1 Guest(s)