My TestNG test implementation throws an error despite the expected value matches with the actual value.
Here is the TestNG code:
int rowCount=driver.findElements(By.xpath(prop.getProperty("xpath"))).size();
Assert.assertEquals(rowCount,prop.getProperty("row[]"));
I got the the following error:
java.lang.AssertionError: expected [5] but found [5]