How to type in a textbox using Selenium?
Question
How to type in a textbox using Selenium?
Answer
The user can use sendKeys() method to enter the string in the textbox.
Syntax:
WebElement username = driver.findElement(By.id(“uname”));
username.sendKeys(“sth”);