I'm trying to write in a text editor using selenium however when i ran the test is not founding the rich text box, this is HTML code:
<document>
<html lang="en" dir="ltr">
<head>
<body class="cke_editable cke_editable_themed cke_contents_ltr" contenteditable="true" spellcheck="false" title="This is a rich text editor control.">
<p>
<br/>
</p>
</body>
</html>
</document>
And this what i got so far from Java code on Eclipse
WebElement frame = driver.findElement(By.xpath(".//*[@title='This is a rich text editor control.']/p/br"));
driver.switchTo().frame(frame);
WebElement body = driver.findElement(By.tagName("body"));
body.sendKeys("Hello world");
driver.switchTo().defaultContent();
Any ideas on here? is not an iFrame so i'm not even sure if switchto command is needed