RE: AssertTrue is not working for me


I am using selenium webdriver testng framework. I am very new to this. I am creating a test as follows. Asserttrue is not working. Assert.asserttrue is crossed out automatically. Do I need to add any dependency in pom?

String expectedPageTitle = “dd”;

String ActualTitle = profilePage.GetTitle();

Assert.assertTrue(expectedPageTitle.equals(ActualTitle), “message”);

Add Comment
1 Answers


Default Answered on June 8, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.