Skip to content

Commit

Permalink
Merge pull request #729 from jayesh12234/develop
Browse files Browse the repository at this point in the history
MOSIP-33383
  • Loading branch information
aranaravi authored Jul 9, 2024
2 parents a438227 + b4a7e86 commit 1bcfb3f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ public static void wait(int wait) {

public static void assertCheck(By by,String message) throws IOException {
try {
wait(2000);
boolean isDisplayed = Commons.isDisplayed(driver, by);
Assert.assertTrue(isDisplayed,message);

Expand All @@ -209,6 +210,7 @@ public static void assertCheck(By by,String message) throws IOException {

public static void assertCheckString(String text,String message) throws IOException {
try {
wait(2000);
Assert.assertNotNull(text,message);

} catch (AssertionError e) {
Expand Down

0 comments on commit 1bcfb3f

Please sign in to comment.