Selenium JavascriptExecutor Calculation
Since this is the input
element, you need to get the value
attribute value instead of text:
WebElement result = driver.findElement(By.cssSelector("input[name=Display]"));assertThat(result.getAttribute("value"), is("12"));