Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c

» Selenium Webdriver
Sat Feb 04, 2017 6:47 pm by soumyamishrav@gmail.com

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