I am trying to get the email and password for Homepage Front End of the below website. http://phptravels.com/demo/
Values that I need to get.
user@phptravels.com
demouser
CODE: driver.get("http://phptravels.com/demo/");
WebElement user = driver.findElement(By.xpath("/html/body/section[2]/div/div/div[1]/div/div/div[2]/div[2]/div/div[3]/div[2]/div/strong[1]"));
System.out.println(user.getText());
It will print only "Email", but I just want the values for email and password i.e. user@phptravels.com and "demouser".
I understand I am not writing the correct xpath, but I am not sure how to write for this one.