Login
Remember
Register
Ask a Question
How to input text in the text box using Selenium WebDriver?
0
votes
asked
Aug 22, 2019
in
Selenium
by
john ganales
How to input text in the text box using Selenium WebDriver?
#selenium-for-load-testing
selenium-bot-detection
selenium-for-ios
ios-selenium
automated-visual-testing-
selenium
load-testing-selenium
python-selenium
selenium-online-training-videos
learning-selenium
selenium-syllabus
selenium-tools-for-testing
selenium-element
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Aug 22, 2019
by
rahulsharma
By using sendKeys() method
WebDriver driver = new FirefoxDriver();
driver.get("
https://www.gmail.com
");
driver.findElement(By.xpath("xpath")).sendKeys("Software Testing Material Website");
1
2
3
WebDriver driver = new FirefoxDriver();
driver.get("
https://www.gmail.com
");
driver.findElement(By.xpath("xpath")).sendKeys("Software Testing Material Website");
...