I have a script to sign up for a facebook account which is done automatically as in the picture below:
I now want to extract what I have written so I have tried the following code but nothin appears?
WebElement fNameText = driver.findElement(By.name("firstname"));
String Txt = fNameText.getText();
System.out.println(Txt);