# Katalon not removing default values from field

**URL:** <https://forum.katalon.com/t/katalon-not-removing-default-values-from-field/25036>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [May 10, 2019, 6:06am UTC](https://forum.katalon.com/t/katalon-not-removing-default-values-from-field/25036 "2019-05-10T06:06:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayster2100](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jayster2100](https://forum.katalon.com/u/jayster2100)\
**Post date:** [May 10, 2019, 6:06am UTC](https://forum.katalon.com/t/katalon-not-removing-default-values-from-field/25036/1 "2019-05-10T06:06:00Z")

</div>

Hey,

I have started using katalon to automate my tests and everything is working great with a few little tweaks 🙂

I have run into a problem where I have a series of financial fields that im trying to enter numeric values into but its always prefix with the default of 0.00. as an example if I use set text on this field to 5000 it enters 0.005000 which is slightly different to the 5000 I require 🙂

I tried using the delay 1 second, set text to ‘’ and then enter 5000 as I saw in another post and I get mixed results. about 10% of the time this may work. I have also tried using a data file to specify the values and this still doesn’t work.

The below is the work around I saw on another post.  
WebUI.delay(1)  
WebUI.setText(findTestObject(‘Object Repository/CRM/Page\_Opportunity Opportunity New Opportunity - Microsoft Dynamics 365/input\_FY - 20252026\_id’),  
‘’)  
WebUI.setText(findTestObject(‘Object Repository/CRM/Page\_Opportunity Opportunity New Opportunity - Microsoft Dynamics 365/input\_FY - 20252026\_id’),  
‘5000’)

I created this as a new thread as it seems a little different in that I know the fields are set to default to 0.00 for reporting purposes. If I click in the field manually the 0.00 does not appear so this must be getting set in the back end and triggered during the automation run.

I’m using Katalon v6.1.4 and Chrome v74.0.3729.131.

Any ideas?

On a side note im finding this automation tool simple to use and a great product for free. a lot of the other free products do not offer all the features of this so the little work arounds are ok all things considered.

---

<div class="post-metadata">

**Author:** ![Arnel](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/arnel/32/6360_2.png) [@Arnel](https://forum.katalon.com/u/Arnel)\
**Post date:** [May 10, 2019, 6:18am UTC](https://forum.katalon.com/t/katalon-not-removing-default-values-from-field/25036/2 "2019-05-10T06:18:06Z")

</div>

Hi Jayster,

Try sendKeys. . .

```auto
//focus on the input field
WebUI.Click(findTestObject("Your_Input_Field"))

//or double click the input field to highlight the whole value before clearing it. .
WebUI.doubleClick(findTestObject("Your_Input_Field"))

WebUI.sendKeys(findTestObject("Your_Input_Field"), Keys.chord(Keys.BACK_SPACE))
WebUI.delay(1)
WebUI.sendKeys(findTestObject("Your_Input_Field"), "5000")

```

Hope that helps. . . 🙂

---

<div class="post-metadata">

**Author:** ![jayster2100](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jayster2100](https://forum.katalon.com/u/jayster2100)\
**Post date:** [May 12, 2019, 11:14pm UTC](https://forum.katalon.com/t/katalon-not-removing-default-values-from-field/25036/3 "2019-05-12T23:14:13Z")

</div>

Hey,

Yes this did fix it for me thank you! I had tried using send keys before but I didn’t include the click action as well which has fixed it 🙂

Thanks

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [May 13, 2019, 5:00am UTC](https://forum.katalon.com/t/katalon-not-removing-default-values-from-field/25036/4 "2019-05-13T05:00:24Z")

</div>

Closed on May 13, 2019, 5:00am UTC


