# Problem: No delay between actions

**URL:** <https://forum.katalon.com/t/problem-no-delay-between-actions/29382>\
**Category:** Web Testing\
**Tags:** web-testing, katalon-studio\
**Created:** [July 9, 2019, 3:29pm UTC](https://forum.katalon.com/t/problem-no-delay-between-actions/29382 "2019-07-09T15:29:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tim.hausladen](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@tim.hausladen](https://forum.katalon.com/u/tim.hausladen)\
**Post date:** [July 9, 2019, 3:29pm UTC](https://forum.katalon.com/t/problem-no-delay-between-actions/29382/1 "2019-07-09T15:29:47Z")

</div>

Hi at all,

So I’m a total Katalon beginner, so I hope you can help me.  
In Settings, I set the delay between actions to 1 sec which just works totally fine when using the usual “Open Browser” statement.

Anyway, it’s needed that the Katalon Extension for Chrome is activated in a Chrome window which Katalon opened.  
To reach this, I copied the following code and and deleted the typical open browser statement.

```
   > System.setProperty('webdriver.chrome.driver', 'C:\\Users\\HaT\\Desktop\\Katalon\\Katalon_Studio_Windows_64-6.2.1\\configuration\\resources\\drivers\\chromedriver_win32\\chromedriver.exe')

```

> ```
> ChromeOptions options = new ChromeOptions()
> 
> //Set Katalon addon extension
> options.addExtensions(new File('C:\\Users\\HaT\\Desktop\\Katalon\\Extension_Chrome\\Katalon.crx'))
> 
> DesiredCapabilities capabilities = new DesiredCapabilities()
> 
> capabilities.setCapability(ChromeOptions.CAPABILITY, options)
> 
> ChromeDriver driver = new ChromeDriver(capabilities)
> 
> DriverFactory.changeWebDriver(driver)
> 
> ```

Now, the delay isn’t existing anymore and without the delay the test is too fast, so that the test fails. It’s still set to 1 sec and still works without the code from above.

Does anyone has a solution to be able to use the Katalon Chrome Extension (to continue web recording of an existing test case) AND use the delay between actions?

Thanks in Advance!

---

<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:** [July 9, 2019, 3:32pm UTC](https://forum.katalon.com/t/problem-no-delay-between-actions/29382/2 "2019-07-09T15:32:18Z")

</div>

Not sure I understand the problem completely. But you can insert specific delays (in seconds) anywhere:

```javascript
WebUI.delay(10) // delay ten seconds

```

---

<div class="post-metadata">

**Author:** ![Amanda\_Perkins1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/amanda_perkins1/32/3843_2.png) [@Amanda\_Perkins1](https://forum.katalon.com/u/Amanda_Perkins1)\
**Post date:** [July 9, 2019, 3:35pm UTC](https://forum.katalon.com/t/problem-no-delay-between-actions/29382/3 "2019-07-09T15:35:53Z")

</div>

I have a couple of cases where I’ve had to add a delay in between steps in Katalon.

You could try to record, then add a step in between and set that delay to 1 sec. Not sure how often you need the delay, but I’ve found I only need it in certain cases.

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

Once that adds another step, open up the selections and pick Delay

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

then, go to the Input column, double click and input how many seconds you want the delay to be.

Hopefully, that helps!!

---

<div class="post-metadata">

**Author:** ![tim.hausladen](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@tim.hausladen](https://forum.katalon.com/u/tim.hausladen)\
**Post date:** [July 9, 2019, 3:46pm UTC](https://forum.katalon.com/t/problem-no-delay-between-actions/29382/4 "2019-07-09T15:46:24Z")

</div>

Thank you for your fast replies!  
So basically I need the delay between almost every action.  
I attached two screenshot, you can see on one that the delay between actions is set to 1 sec and that’s missing on the other screenshot.  
Is it possible to change the code that the automatical delay is still activated?

 ![UsualOpenBrowser](https://europe1.discourse-cdn.com/katalon/original/2X/d/d742e22948dbce2dea614d119f95bf9563abbfb9.png)  
 ![WithExtensionCode](https://europe1.discourse-cdn.com/katalon/original/2X/0/0d4f0e07ba86580324c925d6ce50d00100b8678c.png)

---

<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:** [July 9, 2019, 3:49pm UTC](https://forum.katalon.com/t/problem-no-delay-between-actions/29382/5 "2019-07-09T15:49:37Z")

</div>

> [@tim.hausladen](#):
>
> So basically I need the delay between almost every action.

I don’t believe you do. The script you posted probably only needs a specific delay in one or two places. Use the code I provided.

If I understood what you’re trying to do better, I could be more specific. There’s nothing wrong with your original post, I just don’t do that kind of testing so my experience (and therefore my advice) is limited.

---

<div class="post-metadata">

**Author:** ![Amanda\_Perkins1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/amanda_perkins1/32/3843_2.png) [@Amanda\_Perkins1](https://forum.katalon.com/u/Amanda_Perkins1)\
**Post date:** [July 9, 2019, 3:51pm UTC](https://forum.katalon.com/t/problem-no-delay-between-actions/29382/6 "2019-07-09T15:51:16Z")

</div>

> [@Russ\_Thomas](#):
>
> The script you posted probably only needs a specific delay in one or two places. Use the code I provided.

I tend to agree with Russ on this one. I found that I don’t need delays between every step, just certain ones.

There might be a way to set it up in DesiredCapabilities, but I only use delays in certain spots so I’m not 100% sure there.

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 7:43am UTC](https://forum.katalon.com/t/problem-no-delay-between-actions/29382/7 "2022-08-08T07:43:29Z")

</div>

Archived on August 8, 2022, 7:43am UTC


