/** * Cherche un texte dans un objet de la page * * @param text * @param object * @return */ private boolean lookFor(IsIn i) { String text = i.getText(); if (i.getBody() != null && i.getBody().equals("body")) { try { SEL_DRIVER.findElement(By.xpath("//*[contains(., '" + text + "')]")); return true; } catch (Exception e) { System.out.println("Did not find " + text + " in body"); return false; } } else { // System.out.println("WARNING !!!! Method lookFor(text,object) is not fully implemented)"); WebElement el = findObject(i.getObj()); return el.getText().contains(text); } }