Help with selecting correct text box to type data into

I am trying to write text into a pop-up text box. I am having problems selecting the correct target. I have messed around with it and googled but haven’t figured it out yet. I was wondering if someone could give me a hand?

I have included the test site URL and instructions below.

I want to automatically fill out the 1st three audit reports (Cause, Corrective Action, Incident Resolved). When I click on the “Edit Report” to enter the data, it pops up a window where I can type in the text. I have not been able to figure out how to put text in. Everytime the code submits, its blank.

Currently I am just trying to figure out the “Cause Identified” and hoping once I get this figured out then I could impliment it for the other two fields on the page and then eventually maybe be able to have this thing select all “red incidents” and automatically fill out the 1st 3 audit reports… but one step at a time…

I am using the Screen Recorder and my last attempt “export” code is also below.

Testing URL: camplus.checkit.net
Username: demo@demo.com
Password: Demo1234!

Navigation: Login → Click Sensors Icon → On Left Side Menu Click “View Incidents” → Click on one of the Red Clock Icons → Now you are at the Audit Page

Click the Edit Report under Cause Identified, enter text, and submit it. If you click the “View Report” you will see the entered text.

I am having issues getting this to receive the text using the script.

EXPORT of the Katalon Recorder:
import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as MobileBuiltInKeywords
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testcase.TestCaseFactory as TestCaseFactory
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testdata.TestDataFactory as TestDataFactory
import com.kms.katalon.core.testobject.ObjectRepository as ObjectRepository
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WSBuiltInKeywords
import com.kms.katalon.core.webui.driver.DriverFactory as DriverFactory
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUiBuiltInKeywords
import internal.GlobalVariable as GlobalVariable
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.testobject.SelectorMethod

import com.thoughtworks.selenium.Selenium
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.WebDriver
import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium
import static org.junit.Assert.*
import java.util.regex.Pattern
import static org.apache.commons.lang3.StringUtils.join
import org.testng.asserts.SoftAssert

SoftAssert softAssertion = new SoftAssert();
WebUI.openBrowser(‘https://www.google.com/’)
def driver = DriverFactory.getWebDriver()
String baseUrl = “https://www.google.com/
selenium = new WebDriverBackedSelenium(driver, baseUrl)
selenium.open(“Connected Automated Monitoring”)
selenium.click(“id=frmSensorListPage:editReport”)
selenium.selectFrame(“index=0”)
selenium.click(“xpath=//html”)
selenium.selectFrame(“relative=parent”)
selenium.click(“id=manualComments_input”)
/* selenium.() */
selenium.type(“id=manualComments_input”, “Script Test”)
selenium.click(“xpath=//button[@id=‘confirmBtn’]/span”)