How to input text in the text box without calling the sendKeys?
Hi Tim,
Hi There, you can use Javascript Executer to input text into a text box without using the sendKeys() method:
// Initialize JS object
JavascriptExecutor JS = (JavascriptExecutor)webdriver;
// Enter username
JS.executeScript("document.getElementById('User').value='someone@example'");
// Enter password
JS.executeScript("document.getElementById('Password').value='some-password'");