# Validation script

**URL:** <https://forum.katalon.com/t/validation-script/80775>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [November 20, 2022, 1:11am UTC](https://forum.katalon.com/t/validation-script/80775 "2022-11-20T01:11:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![firstkao](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/firstkao/32/20464_2.png) [@firstkao](https://forum.katalon.com/u/firstkao)\
**Post date:** [November 21, 2022, 2:38am UTC](https://forum.katalon.com/t/validation-script/80775/3 "2022-11-21T02:38:14Z")

</div>

Hi! Thank u so much for your help but I’m sorry I don’t get the point here.

so here the script

> kuantitiAmt = WebUI.getAttribute(findTestObject(‘Object Repository/Pesanan/text\_Minimum 1 pcs’), ‘1’)
> 
> pieceCounter = WebUI.getText((findTestObject(‘Object Repository/Pesanan/Box Qty’).split(‘:’)[1]).trim().substring(0, 1))
> 
> WebUI.GreaterThanOrEqual(((kuantitiAmt) as int), ((pieceCounter) as int))

I get error when they run start from _kuantitiAmt = WebUI.getAttribute(findTestObject(‘Object Repository/Pesanan/text\_Minimum 1 pcs’), ‘1’)_

Then here the containt of the elemet

text\_Minimum 1 pcs

> xpath=//div[@id=‘headlessui-tabs-panel-18’]/div/div/div/div/div[3]/span

Box Qty

> xpath=//input[@value=‘1’]

---

_[View the full topic](https://forum.katalon.com/t/validation-script/80775)._
