Status: Invalid
Owner: ----
New issue 8736 by
zjy.a...@gmail.com: sendKeys() will not append to the
existing text in Rich Text Editor
https://code.google.com/p/selenium/issues/detail?id=8736
Hi All,
I tried to type some text in the Rich Text Editor with sendKeys() function,
but I found this method won't append to the existing text, and it will
always type in the first label
HTML:
<iframe src="javascript:"loading...";" title="Rich text editor"
onload="juic.fire("24:","_ifload",event);"
style="height:169px;width:100%;-moz-box-sizing:border-box;border:0px; "
id="24:"></iframe>
<html>
<head></head>
<body contenteditable="true" style="padding: 5px; margin: 0px;
background: white none repeat scroll 0% 0%;">
<br _moz_editor_bogus_node="TRUE">
</body>
</html>
====================================================================
JAVA Code:
WebDriver driver = ....;
driver.switchTo().frame(...);
driver.findElement(...);
String text = "Test B I U Number Hyperlink";
String[] singleCharacters = str.split("");
// Interval is 0.3 second between each type of character, this is to
// simulate real human action
for (int i = 0; i < singleCharacters.length; i++)
{
if (!StringUtils.isEmpty(singleCharacters[i]))
{
driver.sendKeys(singleCharacters[i]);
Thread.sleep(300);
}
}
Selenium: 2.48.2
Browser: Firefox 41
Java Version: JDK 1.7
Attached:
screenshot using selenium 2.42
screenshot using selenium 2.48
Attachments:
selenium 2-42.png 10.0 KB
selenium 2-48 auto-completion.png 14.1 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings