Google News
logo
Selenium - Interview Questions
How to type in a textbox using Selenium?
The user can use sendKeys(“String to be entered”) to enter the string in the textbox.
 
Syntax :
WebElement username = drv.findElement(By.id(“Email”));
// entering username
username.sendKeys(“sth”);
Advertisement