searchText() function will return true if the expected text is actually shown on the screen for the target UI component. In such a case, the JUnit assertEquals method will return true indicating that the test case is passed, and return false otherwise.