You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nov 18th change to Element.sendKeys in the Java bindings results in loss of a single newline character. This was introduced in fc12197.
If the input to sendKeys is "\n", nothing will be sent to the driver.
This results in breaking test FormHandlingTest.testShouldSubmitAFormUsingTheNewlineLiteral.
I believe this will also drop a trailing newline, but I haven't confirmed that.
To Reproduce
Run test FormHandlingTest.testShouldSubmitAFormUsingTheNewlineLiteral. The test code is:
🐛 Bug Report
Nov 18th change to Element.sendKeys in the Java bindings results in loss of a single newline character. This was introduced in fc12197.
If the input to sendKeys is "\n", nothing will be sent to the driver.
This results in breaking test FormHandlingTest.testShouldSubmitAFormUsingTheNewlineLiteral.
I believe this will also drop a trailing newline, but I haven't confirmed that.
To Reproduce
Run test FormHandlingTest.testShouldSubmitAFormUsingTheNewlineLiteral. The test code is:
public void testShouldSubmitAFormUsingTheNewlineLiteral() {
driver.get(pages.formPage);
WebElement nestedForm = driver.findElement(By.id("nested_form"));
WebElement input = nestedForm.findElement(By.name("x"));
input.sendKeys("\n");
wait.until(titleIs("We Arrive Here"));
assertThat(driver.getCurrentUrl()).endsWith("?x=name");
}
The test fails the wait, because the navigation never occurs. the SendKeys command delivers an empty string to ChromeDriver.
This build also shows the failure: https://github.com/SeleniumHQ/selenium/runs/309284705
Expected behavior
ChromeDriver should receive the text "\n".
Instead the text is empty: "".
The text was updated successfully, but these errors were encountered: