How to set value in a text field with Java-JUnit?

How to set value in a text field with Java-JUnit ?

Hello Brettm,

To set value in a text field with Java-JUnit by adding "sendKeys" command. Please refer to the sample below:

 // Let's add an item in the list.
              driver.findElement(By.id("sampletodotext")).sendKeys("Yey, Let's add it to list");
            driver.findElement(By.id("addbutton")).click();