File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
java/client/test/org/openqa/selenium Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > Testing content editable</ title >
5
+ </ head >
6
+ < body >
7
+ < div id ="editable " contenteditable ="true ">
8
+ Why < span > hello</ span >
9
+ </ div >
10
+ </ body >
11
+ </ html >
Original file line number Diff line number Diff line change @@ -670,6 +670,15 @@ public void canClearNumberInputAfterTypingInvalidInput() {
670
670
assertEquals ("3" , input .getAttribute ("value" ));
671
671
}
672
672
673
+ @ Test
674
+ @ NotYetImplemented
675
+ public void appendsTextToEndOfContentEditableWithMultipleTextNodes () {
676
+ driver .get (appServer .whereIs ("content-editable.html" ));
677
+ WebElement input = driver .findElement (By .id ("editable" ));
678
+ input .sendKeys (", world!" );
679
+ assertEquals ("Why hello, world!" , input .getText ());
680
+ }
681
+
673
682
private static String getValueText (WebElement el ) {
674
683
// Standardize on \n and strip any trailing whitespace.
675
684
return el .getAttribute ("value" ).replace ("\r \n " , "\n " ).trim ();
You can’t perform that action at this time.
0 commit comments