Selenium Java - JavaScriptExecutor
Consider the following Selenium Java code snippet:
If the input field has
WebElement input = driver.findElement(By.id("username"));
String value = input.getAttribute("value");
System.out.println(value);If the input field has
value="testUser", what will be printed?