This is a migrated thread and some comments may be shown as answers.

Selenium and Telerik RadEditor

2 Answers 191 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Piotr
Top achievements
Rank 1
Piotr asked on 12 Aug 2011, 07:26 AM
Hi all,

I would like to add some text to this Telerik RadEditor by using Selenium. I've founded this topic: "http://www.telerik.com/community/forums/aspnet/editor/testing-wysiwyg-editor-with-selenium-ide.aspx". Can someone help me with this, and explain how can I do it by using solution from the mentioned topic, please?
E.g: I would add automate some text by Selenium to this page:
http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

I have the similiar situation in my project and then I could change the solution to me code.

Thanks a lot for your help.

BR,
Piotr

2 Answers, 1 is accepted

Sort by
0
Piotr
Top achievements
Rank 1
answered on 16 Aug 2011, 08:14 AM
Can someone explain me this old topic, please?

http://www.telerik.com/community/forums/aspnet/editor/testing-wysiwyg-editor-with-selenium-ide.aspx

I can't manage with this what is described in the last post from Petio Petkov - the Telerik team
0
Misho
Telerik team
answered on 17 Aug 2011, 12:24 PM
Hi Piotr,

This is an example of how to add and verify some content in RadEditor.
The test consists of 4  steps:

1. Open a page from Telerik online demos.
2. Get reference to RadEditor object and stores it to a variable.
3. Set some test content in RadEditor.
4. Verify the content matches the one entered above.

<tr>
    <td>open</td>
    <td></td>
</tr>
<tr>
    <td>storeEval</td>
    <td>this.browserbot.getCurrentWindow().$find('RadEditor1');</td>
    <td>editor</td>
</tr>
<tr>
    <td>getEval</td>
    <td>storedVars['editor'].set_html('aaa')</td>
    <td></td>
</tr>
<tr>
    <td>verifyEval</td>
    <td>storedVars['editor'].get_html()</td>
    <td>aaa</td>
</tr>

I hope this helps.

P.S. There is a new testing tool "WebUI Test Studio" that’s much more convenient for recording, executing and debugging functional tests. It has options for creating both recorded and coded tests as well.

Regards,
Misho
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
General Discussions
Asked by
Piotr
Top achievements
Rank 1
Answers by
Piotr
Top achievements
Rank 1
Misho
Telerik team
Share this question
or