Hi Rohan, you can use Javascript Executer to input text into a text box without using sendKeys() method:
// Initialize JS object
JavascriptExecutor JS = (JavascriptExecutor)webdriver;
// Enter username
JS.executeScript("document.getElementById('User').value='Abha_Rathour'");
// Enter password
JS.executeScript("document.getElementById('Password').value='password123'");
Hope this helps!
Check out Selenium training and learn from the industry experts!