I have test scenario where actual result is fix percentage For example 135.68% but I want to compare actual result with the Expected result which is in range For example 130.00 to 136.00. If actual result fall between the range of 130.00 to 136.00 then test is pass otherwise test is fail.
I am using following Assert statement but no luck:
Assert.assertEquals("130.00 to 136.00", driver.findElement(By.xpath("//*[@id='app-banner']/div[1]/div/h2")).getText());
Aucun commentaire:
Enregistrer un commentaire