Why does the following assertEquals() statement:
WebElement submit = driver.findElement(By.name("send"));
Assert.assertEquals("optional", "xxxLogin", submit.getAttribute("value"));
give this java error result:
java.lang.AssertionError: expected [xxxLogin] but found [optional]
The button label is Login
I was expecting to see something like expected [xxxLogin] but found [Login] (the button label). I read that the first argument is an optional string message but it seems to be used as part of the Equals test?