At the moment in Eclipse, I have the following code:
driver.findElement(By.name("LoginText1")).clear();
System.out.println("Username: ");
Scanner scan1 = new Scanner(System.in);
String input1 = scan1.nextLine();
System.out.println(input1);
and was just wondering, instead of it simply returning the user's input in to the console, is there a way to get it to insert it in to the text field. I want to insert it into a field which has the name LoginText1. This is for website testing with Selenium WebDriver.
I am new to Java and all help is greatly appreciated.