I am passing input to rich text field. For that I have written the code below:
public void inputToDescriptionField() throws InterruptedException , AWTException
{
wait.until(ExpectedConditions.elementToBeClickable(descriptionField));
Actions a = new Actions(driver);
a.moveToElement(descriptionField).click().build().perform();
Robot r = new Robot();
String text = "Program Description";
StringSelection stringSelection = new StringSelection(text);
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
clipboard.setContents(stringSelection, stringSelection);
r.keyPress(KeyEvent.VK_CONTROL);
r.keyPress(KeyEvent.VK_V);
r.keyRelease(KeyEvent.VK_V);
r.keyRelease(KeyEvent.VK_CONTROL);
but I am getting the error move target out of bounds