# SetText and click takes a lot of time

**URL:** <https://forum.katalon.com/t/settext-and-click-takes-a-lot-of-time/48325>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [October 15, 2020, 12:07pm UTC](https://forum.katalon.com/t/settext-and-click-takes-a-lot-of-time/48325 "2020-10-15T12:07:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![prayas](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@prayas](https://forum.katalon.com/u/prayas)\
**Post date:** [October 15, 2020, 12:07pm UTC](https://forum.katalon.com/t/settext-and-click-takes-a-lot-of-time/48325/1 "2020-10-15T12:07:06Z")

</div>

I’m using WebUiBuiltInKeywords setText and click which takes 4-5 sec and 2.5 sec respectively. I’m wondering why it takes that much time.

---

<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:** [October 15, 2020, 12:13pm UTC](https://forum.katalon.com/t/settext-and-click-takes-a-lot-of-time/48325/2 "2020-10-15T12:13:41Z")

</div>

Is Smart Wait enabled?

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

---

<div class="post-metadata">

**Author:** ![prayas](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@prayas](https://forum.katalon.com/u/prayas)\
**Post date:** [October 15, 2020, 1:34pm UTC](https://forum.katalon.com/t/settext-and-click-takes-a-lot-of-time/48325/3 "2020-10-15T13:34:30Z")

</div>

@Russ_Thomas, Yes, smart wait is enabled.

---

<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:** [October 15, 2020, 2:39pm UTC](https://forum.katalon.com/t/settext-and-click-takes-a-lot-of-time/48325/4 "2020-10-15T14:39:35Z")

</div>

Does the problem persist if you disable it?

---

<div class="post-metadata">

**Author:** ![prayas](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@prayas](https://forum.katalon.com/u/prayas)\
**Post date:** [October 16, 2020, 2:59am UTC](https://forum.katalon.com/t/settext-and-click-takes-a-lot-of-time/48325/5 "2020-10-16T02:59:40Z")

</div>

Hey @Russ_Thomas, i’m using katalon version 7.7.2. With this version after disabling smart wait, it’s not able to set text as it’s giving XPath not found error. But with smart wait enabled, it works fine and takes a lot of time. Does it generally takes that much time?

---

<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:** [October 16, 2020, 3:01am UTC](https://forum.katalon.com/t/settext-and-click-takes-a-lot-of-time/48325/6 "2020-10-16T03:01:41Z")

</div>

I never use it myself but there is another way to use smart wait…

> **[\[WebUI\] Smart Wait Function](https://docs.katalon.com/katalon-studio/docs/webui-smartwait.html#temporarily-turn-off-smart-wait)**
>
> One of the most common problems is that Katalon users cannot interact with web page elements, which causes automation tests to fail. Some elements are neither visible nor interactable; the...

---

<div class="post-metadata">

**Author:** ![prayas](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@prayas](https://forum.katalon.com/u/prayas)\
**Post date:** [October 16, 2020, 4:28am UTC](https://forum.katalon.com/t/settext-and-click-takes-a-lot-of-time/48325/7 "2020-10-16T04:28:09Z")

</div>

Hi, @Russ_Thomas  
I have used smart wait function as well, but it still takes the same time. I have attached the screenshot with the time taken by setText and click methods.

 ![Screen Shot 2020-10-16 at 9.50.33 AM](https://europe1.discourse-cdn.com/katalon/original/2X/f/f59c6abe818ca6c8de5ad06af055fbf21d1c9f11.png)
