How can I type text into the text box without using the sendKeys() function?
Hi Joe,
Its Syntax is as follows:
// To initialize js object
JavascriptExecutor JS = (JavascriptExecutor)webdriver;
// To enter username
JS.executeScript("document.getElementById('User').value='InterviewBit.com'");