Created
April 16, 2013 18:53
-
-
Save RossPatterson/5398534 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void FillTinyMCE(P5Browser selenium, string editorId, string fillString) | |
| { | |
| string editorFrameId = editorId + "_ifr"; | |
| selenium.Focus(String.Format("dom=document.getElementById('{0}').contentWindow.document.body", editorFrameId)); | |
| selenium.GetEval(String.Format("selenium.browserbot.getCurrentWindow().document.getElementById('{0}').contentWindow.document.body.innerHTML = '{1}';", | |
| editorFrameId, fillString.ToJsString('\''))); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment