@Then("^I should see \"([^\"]*)\" as a text in the tooltip FR$") public void I_should_see_as_a_text_in_the_tooltip_FR(String text) throws Throwable { Thread.sleep(3000); try { Assert.assertTrue( "Text not available in School Module", detailPage.LocalSchoolsToolTipTextFR().contains(text)); System.out.println(text + " - passed"); } catch (AssertionError e) { System.out.println(text + " - failed"); throw e; } }