You say your object is type <div>, yet the name of the object starts with “input_”. So, how about showing us your HTML of this object so we can see what the tag of your object actually is. My bet is on the <input>.
Katalon supplies the “setText” and “sendKeys” methods to put text into a textbox or textarea. Is there a reason you want to use Javascript? Have you tried to use “setText” or “sendKeys”?
I wanted to examine if I can modify the innerText of a HTML element other than <input> such as div, p, and h1 by the code that @chilumukurisreeja200 presented.
WebUI.findWebElement(h1, 10) — this Groovy code fragment returns an instance of org.openqa.selenium.WebElement class in the Test Case runtime in Katalon Studio JVM.
On the other hand, arguments[0].innerText = 'Guri, Gura'; — this string is sent from the Katalon Studio into a Browser. Browser interpretes as a JavaScript fragment. Browser successfully located an HTML Element (<h1>) in the DOM, and modified its innter text.
The WebElement object in the Groovy script on KS was somehow transformed into the HTML Element in the DOM in JavaScript inside the browser. A magical interconnection. This transformation is defined by the W3C Recommendation 05 June 2018 WebDriver specification, and was implemented by the browsers and the webdrivers . This experiment gave me a chance to see how WebDriver protocol works.