I used JavascriptExecutor instead of sendkeys to type the text in the username textbox.It types the text but shows the below exception in the console.
I have tried on Chrome version 74 with the latest standalone server.
System.setProperty("webdriver.chrome.driver", "D:\\chromedriver.exe");
WebDriver driver=new ChromeDriver();
driver.get("https://www.apsrtconline.in/oprs-web/login/show.do");
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
WebElement ele=driver.findElement(By.name("userName"));
JavascriptExecutor jse=(JavascriptExecutor) driver;
jse.executeAsyncScript("arguments[0].value='Vinutha'", ele);
driver.findElement(By.id("submitBtn")).click();
I expect the test to be passed.But there is a script timeout exception .
Exception in thread "main" org.openqa.selenium.ScriptTimeoutException: script timeout: result was not received in 30 seconds at the line jse.executeAsyncScript("arguments[0].value='Vinutha'", ele);