Text pasting in wrong line text box instead of intended line text box

As mentioned above katalon studio test case is pasting text in different line text box like 2 or 3 rows below 2nd intended row but not the 2nd row,please help
I am testing this in oracle fusion cloud

Screenshot below:

It works like this:program goes the above page and clicks on + button under “invoice lines” in screenshot and a new row will get created on the second line and program has to enter text on this second line,but it inserts in the line below it,please help

below is the code:

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 static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords as TestNGKW
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys

WebUI.openBrowser(‘’)

WebUI.navigateToUrl(‘https://emze-test.login.ap2.oraclecloud.com’)

WebUI.maximizeWindow()

WebUI.setText(findTestObject(‘Object Repository/Page_Sign In/input_User ID_userid’), ‘santhosh.khati@cultfit.in’)

WebUI.setEncryptedText(findTestObject(‘Object Repository/Page_Sign In/input_Password_password’), ‘up+3IOQy8oYM6+J9+4ucbw==’)

WebUI.click(findTestObject(‘Object Repository/Page_Sign In/button_Sign In’))

WebUI.click(findTestObject(‘Object Repository/Page_Welcome/svg_Favorites and Recent Items’))

WebUI.click(findTestObject(‘Object Repository/Page_Welcome/span_Manage Transactions’))

WebUI.setText(findTestObject(‘Object Repository/Page_Manage Transactions - Billing - Oracle_c9685a/input_Transaction Number Operator__FOpt1_FO_3eed66’),
‘240006’)

WebUI.click(findTestObject(‘Object Repository/Page_Manage Transactions - Billing - Oracle_c9685a/button_Search’))

WebUI.click(findTestObject(‘Object Repository/Page_Manage Transactions - Billing - Oracle_c9685a/img_Reorder Columns__FOpt1_FOr10_FOSritemNo_901715’))

WebUI.click(findTestObject(‘Object Repository/Page_Manage Transactions - Billing - Oracle_c9685a/img_Reorder Columns__FOpt1_FOr10_FOSritemNo_6c0eed’))

WebUI.click(findTestObject(‘Object Repository/Page_Manage Transactions - Billing - Oracle_c9685a/input_Number of Periods__FOpt1_FOr10_FOSrit_2e6301’))

WebUI.setText(findTestObject(‘Object Repository/Page_Manage Transactions - Billing - Oracle_c9685a/input_Assessable Value__FOpt1_FOr10_FOSrite_f82baf’),
‘2’)

WebUI.setText(findTestObject(‘Object Repository/Page_Manage Transactions - Billing - Oracle_c9685a/input_Line__FOpt1_FOr10_FOSritemNode_receiv_2e1a17’),
‘2nd line data’)

HTML PAGE CODE ELEMENT OF ABOVE PAGE IN SCREENSHOT:IN BELOW TEXT FILE
HTML PAGE ELEMENT.txt (665.5 KB)


NO ERRORS BUT TEXT IS INSERTING IN THE WRONG LINE

Review my answer here.

Amended my answer here.

What is the pathway you are using for the below element and how many rows are in the table?

WebUI.setText(findTestObject('Object Repository/Page_Manage Transactions - Billing - Oracle_c9685a/input_Line__FOpt1_FOr10_FOSritemNode_receiv_2e1a17'), '2nd line data')