In the application field and value is displayed as a paragraph, not in a editable input field.
example: Name
Test
How to check the name and text is displayed in screen with selenium and java.
//locate the element
WebElement ele =driver.findElement(By.xpath("label[@title='name']"));
WebElement ele2 = driver.findElement(By.xpath("span[contains(text(),Test)]"));
boolean e= ele.isDisplayed(0;
boolean l= ele2.isDisplayed();
Assert.assertTrue(e);
Assert.assertTrue(l);
any correction in the code ?
4