Issue 8736 in selenium: sendKeys() will not append to the existing text in Rich Text Editor

46 views
Skip to first unread message

sele...@googlecode.com

unread,
Dec 15, 2015, 10:24:04 PM12/15/15
to selenium-develope...@googlegroups.com
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:&quot;loading...&quot;;" title="Rich text editor"
onload="juic.fire(&quot;24:&quot;,&quot;_ifload&quot;,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

sele...@googlecode.com

unread,
Dec 16, 2015, 1:01:11 AM12/16/15
to selenium-develope...@googlegroups.com

Comment #1 on 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,

Because this issue blocked our company's auto testing, so could you take it
as a priority?

Thanks

sele...@googlecode.com

unread,
Dec 21, 2015, 11:57:07 PM12/21/15
to selenium-develope...@googlegroups.com

Comment #2 on issue 8736 by shenxie...@gmail.com: sendKeys() will not
append to the existing text in Rich Text Editor
https://code.google.com/p/selenium/issues/detail?id=8736

More information:

We've tried with Selenium 2.47.1 and it works fine, so we are sure that
it's a regression issue in 2.48 version and from its changelog, it's very
like due to the change "* Firefox: fixing sendKeys for contentEditable
elements, it should append to the existing text.".
Reply all
Reply to author
Forward
0 new messages