# I can delete a default value in a field?

**URL:** <https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [June 4, 2020, 12:39am UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160 "2020-06-04T00:39:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![acuadros](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@acuadros](https://forum.katalon.com/u/acuadros)\
**Post date:** [June 4, 2020, 12:39am UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/1 "2020-06-04T00:39:55Z")

</div>

Hello, the field that appears with the value “ANDRES FELIPE” comes by default when I load the web page. My wish is to remove this value and enter a new one, but it doesn’t work.

This is the code I have:

WebUI.doubleClick(findTestObject(‘Object Repository/Consultar/Page\_Bsqueda avanzada - Microsoft Dynamics 365/div\_Escribir valor\_ms-crm-Lookup ms-crm-Hid\_efe464’))

WebUI.setText(findTestObject(‘Object Repository/Consultar/Page\_Bsqueda avanzada - Microsoft Dynamics 365/input\_Cliente del Pedido\_\_ledit’),  
‘DIEGO CUADROS’)

If anyone can help me, I really appreciate it.

![image](https://europe1.discourse-cdn.com/katalon/original/2X/8/847c636cea60614709611353f1f1189572e0a390.png)

---

<div class="post-metadata">

**Author:** ![helpdesk](https://avatars.discourse-cdn.com/v4/letter/h/7c8e57/32.png) [@helpdesk](https://forum.katalon.com/u/helpdesk)\
**Post date:** [June 4, 2020, 4:19pm UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/2 "2020-06-04T16:19:56Z")

</div>

How about clearing the textbox first before entering text?

WebUI.clearText(findTestObject(‘Object Repository/Consultar/Page\_Bsqueda avanzada - Microsoft Dynamics 365/input\_Cliente del Pedido\_\_ledit’))

---

<div class="post-metadata">

**Author:** ![acuadros](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@acuadros](https://forum.katalon.com/u/acuadros)\
**Post date:** [June 4, 2020, 10:50pm UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/3 "2020-06-04T22:50:52Z")

</div>

Hi, thanks for answering, but it doesn’t work. Look at the error that comes out:

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/0/0ea2af927e746b93b387ceaead40bd350b946823.png)

---

<div class="post-metadata">

**Author:** ![helpdesk](https://avatars.discourse-cdn.com/v4/letter/h/7c8e57/32.png) [@helpdesk](https://forum.katalon.com/u/helpdesk)\
**Post date:** [June 4, 2020, 11:04pm UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/4 "2020-06-04T23:04:16Z")

</div>

The error message says that your ' **Element is disabled**". You should check if the identification of your element is correct to the one you believe.

---

<div class="post-metadata">

**Author:** ![acuadros](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@acuadros](https://forum.katalon.com/u/acuadros)\
**Post date:** [June 4, 2020, 11:31pm UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/5 "2020-06-04T23:31:09Z")

</div>

Yes, I already inspected the page and that is the id of the element. Is there a function to enable the field?

---

<div class="post-metadata">

**Author:** ![helpdesk](https://avatars.discourse-cdn.com/v4/letter/h/7c8e57/32.png) [@helpdesk](https://forum.katalon.com/u/helpdesk)\
**Post date:** [June 4, 2020, 11:37pm UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/6 "2020-06-04T23:37:02Z")

</div>

Generally, the same way you would “enable” the element if you were doing the testing manually. Unfortunately, I am not familiar with Dynamics 365 to know how that is done (for a specific field). In the image above, there is a “search” icon on the right-hand side. Do you need to click on that?

---

<div class="post-metadata">

**Author:** ![acuadros](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@acuadros](https://forum.katalon.com/u/acuadros)\
**Post date:** [June 4, 2020, 11:40pm UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/7 "2020-06-04T23:40:59Z")

</div>

the manual test would be by clicking on the field and removing what is there. I try to do the same with Katalon but I get an error.

Yes, but when I inspect the image (lupita) it does not appear, then it is difficult for me to get the item. What do you recommend me?

---

<div class="post-metadata">

**Author:** ![helpdesk](https://avatars.discourse-cdn.com/v4/letter/h/7c8e57/32.png) [@helpdesk](https://forum.katalon.com/u/helpdesk)\
**Post date:** [June 4, 2020, 11:48pm UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/8 "2020-06-04T23:48:18Z")

</div>

In your very first post, you say you try to enter a new value, “but it doesn’t work”. What does it do? Does it add (concatenate) onto the text that is already there or nothing at all?

Also, have you tried:  
WebUI.click(findTestObject(‘Object Repository/Consultar/Page\_Bsqueda avanzada - Microsoft Dynamics 365/ **input** \_Cliente del Pedido\_\_ledit’))

WebUI.clearText(findTestObject(‘Object Repository/Consultar/Page\_Bsqueda avanzada - Microsoft Dynamics 365/ **input** \_Cliente del Pedido\_\_ledit’))

WebUI.setText(findTestObject(‘Object Repository/Consultar/Page\_Bsqueda avanzada - Microsoft Dynamics 365/ **input** \_Cliente del Pedido\_\_ledit’),‘DIEGO CUADROS’)

Note: you cannot just copy and paste into Eclipse (KS) as this forum supports “smart” quotes, which Eclipse does not.

---

<div class="post-metadata">

**Author:** ![acuadros](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@acuadros](https://forum.katalon.com/u/acuadros)\
**Post date:** [June 5, 2020, 12:50am UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/9 "2020-06-05T00:50:45Z")

</div>

As I have those steps, but when it reaches cleartext the error that the element is not enabled comes out.

Is there a function that allows me to enable this field? I have an instruction in javascipt to enable fields

---

<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:** [June 5, 2020, 2:29am UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/10 "2020-06-05T02:29:47Z")

</div>

> [@acuadros](#):
>
> Is there a function that allows me to enable this field?

No, nor should there be. That would be bad practice.

Katalon’s API set (and the selenium core beneath it) are designed to perform the same actions as a human user.

Write down the actions you perform as a human user and translate them to script statements in Katalon. When you hit a problem, post the steps and the errors you see here.

---

<div class="post-metadata">

**Author:** ![acuadros](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@acuadros](https://forum.katalon.com/u/acuadros)\
**Post date:** [June 5, 2020, 2:42am UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/11 "2020-06-05T02:42:35Z")

</div>

I understand that it is a bad practice, but I already published the steps I am taking and the error that is generating

---

<div class="post-metadata">

**Author:** ![ThanhTo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thanhto/32/697_2.png) [@ThanhTo](https://forum.katalon.com/u/ThanhTo)\
**Post date:** [June 5, 2020, 3:48am UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/12 "2020-06-05T03:48:32Z")

</div>

> [@acuadros](#):
>
> the manual test would be by clicking on the field and removing what is there

Could you try to click on the object, and then set text, to see if it is enabled by a click.

---

<div class="post-metadata">

**Author:** ![sachinsingh9960](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/sachinsingh9960/32/16104_2.png) [@sachinsingh9960](https://forum.katalon.com/u/sachinsingh9960)\
**Post date:** [June 5, 2020, 10:29am UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/14 "2020-06-05T10:29:54Z")

</div>

try WebUI.enhancedClick  
then clear text and then set text

also please share the dom element detail which you are trying to click.

---

<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:** [June 5, 2020, 11:33am UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/15 "2020-06-05T11:33:37Z")

</div>

> [@sachinsingh9960](#):
>
> try WebUI.enhancedClick

What is `enhancedClick()` ? There is no mention of it here [https://github.com/katalon-studio/katalon-studio-testing-framework/tree/master/Include/scripts/groovy/com/kms/katalon/core/webui/keyword/builtin](https://github.com/katalon-studio/katalon-studio-testing-framework/tree/master/Include/scripts/groovy/com/kms/katalon/core/webui/keyword/builtin) or here

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/2/2b75265a6e17fc8ccafd3e64664a7b940bf41337.png)

In fact the only mention of it in the entire Katalon universe seems to be three mentions of it by you.

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/2/2ee3c615a7c149181820d88441ef9aebb4cafaae.png)

Did you create your own custom keyword and extend WebUI?

Please share the source reference and/or the source itself.

---

<div class="post-metadata">

**Author:** ![sachinsingh9960](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/sachinsingh9960/32/16104_2.png) [@sachinsingh9960](https://forum.katalon.com/u/sachinsingh9960)\
**Post date:** [June 5, 2020, 11:41am UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/16 "2020-06-05T11:41:35Z")

</div>

hey, you will find the information here.

[https://docs.katalon.com/javadoc/com/kms/katalon/core/webui/keyword/WebUiBuiltInKeywords.html](https://docs.katalon.com/javadoc/com/kms/katalon/core/webui/keyword/WebUiBuiltInKeywords.html)

Its not a custom keyword.

---

<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:** [June 5, 2020, 11:49am UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/17 "2020-06-05T11:49:02Z")

</div>

Thank you!

@ThanhTo can you have the main docs updated please?

---

<div class="post-metadata">

**Author:** ![ThanhTo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thanhto/32/697_2.png) [@ThanhTo](https://forum.katalon.com/u/ThanhTo)\
**Post date:** [June 5, 2020, 1:43pm UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/18 "2020-06-05T13:43:20Z")

</div>

Assigned @Jass on June 5, 2020, 1:43pm UTC



---

<div class="post-metadata">

**Author:** ![Jass](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jass/32/9588_2.png) [@Jass](https://forum.katalon.com/u/Jass)\
**Post date:** [June 8, 2020, 8:29am UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/19 "2020-06-08T08:29:59Z")

</div>

Hi @Russ_Thomas

Thank you for your feedback. The document for the WebUI: Enhanced Click keyword is [here](https://docs.katalon.com/katalon-studio/docs/webui-enhanced-click.html).

Jass

---

<div class="post-metadata">

**Author:** ![Jass](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jass/32/9588_2.png) [@Jass](https://forum.katalon.com/u/Jass)\
**Post date:** [June 9, 2020, 2:27am UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/20 "2020-06-09T02:27:57Z")

</div>

Unassigned @Jass on June 9, 2020, 2:27am UTC



---

<div class="post-metadata">

**Author:** ![danpoleary](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/danpoleary/32/2416_2.png) [@danpoleary](https://forum.katalon.com/u/danpoleary)\
**Post date:** [June 9, 2020, 1:01pm UTC](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160/21 "2020-06-09T13:01:37Z")

</div>

We use Dynamics 365 with Katalon. All field in Dynamics are represented by a hierarchical structure. You need to find the correct element to click first to enable the field so that you can interact with it. We use a modified and improved version of easyrepro for Java. It contains everything you need to use Katalon correctly with Dynamics 365. [https://github.com/13rice/EasyRepro-Katalon](https://github.com/13rice/EasyRepro-Katalon)

[Next page](https://forum.katalon.com/t/i-can-delete-a-default-value-in-a-field/44160.md?page=2)
