This question is locked. New answers and comments are not allowed.
Hi,
I have written tests for the RadEditor with Selenium, however, I am unable to get the tests to work for the MVC version. Here are my helper functions that work for the RadEditor. Does anyone have any ideas on how to make this work for MVC?
public static void TypeRadEditor(this ISelenium selenium, string editorId, string text)
{
selenium.RunScript(string.Format("$find('{0}').set_html('{1}')", editorId, text));
}
public static string GetTextRadEditor(this ISelenium selenium, string editorId)
{
return selenium.GetEval(string.Format("this.browserbot.getCurrentWindow().$find('{0}').get_html()", editorId));
}
I can get to the object by using $('#editor').data('tGrid') with jquery, however, that doesn't seem to help me with being able to get and set text in the editor using selenium.
Any thoughts on how I can get this to work?
Thanks,
Jesse
I have written tests for the RadEditor with Selenium, however, I am unable to get the tests to work for the MVC version. Here are my helper functions that work for the RadEditor. Does anyone have any ideas on how to make this work for MVC?
public static void TypeRadEditor(this ISelenium selenium, string editorId, string text)
{
selenium.RunScript(string.Format("$find('{0}').set_html('{1}')", editorId, text));
}
public static string GetTextRadEditor(this ISelenium selenium, string editorId)
{
return selenium.GetEval(string.Format("this.browserbot.getCurrentWindow().$find('{0}').get_html()", editorId));
}
I can get to the object by using $('#editor').data('tGrid') with jquery, however, that doesn't seem to help me with being able to get and set text in the editor using selenium.
Any thoughts on how I can get this to work?
Thanks,
Jesse