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

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

Hello Anna- prokofieva,

You can refer to this sample syntax below to set a value in a test field.

driver.findElement(By.id("sampletodotext")).sendKeys("Yey, Let's add it to list");