Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

How to enter into utlimate editor similar to FCK in explorer

View previous topic View next topic Go down

How to enter into utlimate editor similar to FCK in explorer

Post by Adviser on Tue Aug 11, 2009 1:11 pm

Hi,

There are different type of editor is using in application and it is really going to tough to identify in selenium. One user face problem in running IE but succeed in firefox. so I am going to tell you , how to write in ultimate editor through RC in java.

First of go through this link to get idea of ultimate editor : http://www.karamasoft.com/Samples.aspx?component=UltimateEditor

Sample snippet of code:


import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.SeleneseTestCase;
import com.thoughtworks.selenium.Selenium;



public class fckEditor extends SeleneseTestCase
{
public Selenium browser;

public static void main(String arg[]) throws InterruptedException
{
fckEditor obj = new fckEditor();
obj.setUp();
}

public void setUp() throws InterruptedException
{
browser = new DefaultSelenium("localhost",4444,"*iexplore","http://www.karamasoft.com/Samples.aspx?component=UltimateEditor");
browser.start();
browser.open("http://www.karamasoft.com/Samples.aspx?component=UltimateEditor");
browser.waitForPageToLoad("30000");
browser.windowMaximize();
browser.selectFrame("UltimateEditor1i");
browser.type("//body", "this is testing <p> great </p>");
browser.selectWindow("null");
}
}

Note: You have to connect the selenium java jar and junit to this code.

This code is working fine both in IE and firefox.Modify the code according to your requirement. Enjoy it.
Best Of luck

Bye

Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum