Log in or register to post comments The user can use sendKeys(“String to be entered”) to enter the string in the textbox: WebElement username = driver.findElement(By.id("")); username.sendKeys("Name of the User"); Related Content Selenium Tutorial Launch browser using Selenium Cucumber Page Object Model with PageFactory in Selenium Tags Selenium Interview Questions