# Wrong custom keyword selected by Katalon

**URL:** <https://forum.katalon.com/t/wrong-custom-keyword-selected-by-katalon/18927>\
**Category:** Bug Report\
**Tags:** katalon-studio, bugs-report\
**Created:** [February 6, 2019, 10:39am UTC](https://forum.katalon.com/t/wrong-custom-keyword-selected-by-katalon/18927 "2019-02-06T10:39:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michail\_Timosok](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@Michail\_Timosok](https://forum.katalon.com/u/Michail_Timosok)\
**Post date:** [February 6, 2019, 10:39am UTC](https://forum.katalon.com/t/wrong-custom-keyword-selected-by-katalon/18927/1 "2019-02-06T10:39:40Z")

</div>

**Operating System** Windows 10 Home

**Katalon Studio Version** tested on 5.9.1 and 5.10.1

**Katalon Studio logs** see screenshots

**Environment (for Web testing)** UI Test automation

- Browser and Browser version Chrome 71.0.3578.98

**Steps to reproduce**

I’m using custom keywords and until version 5.8.6 they worked fine. On versions 5.9.1 and 5.10.1 the same keyword is failing in a same place  
The problem occurs when executing keyword “verifyElementVisible\_fc”: it fails but in log it shows that place there it failed was in keyword “verifyElementVisible\_2X\_fc” (see screenshot).  
I have tried deleting test scripts keywords (action lines) and adding them again with a same parameters, but it still failed in 2nd keyword place.

Please also provide your test scripts if possible.

**Screenshots / Videos**  
Version 5.8.6 custom keyword log

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/4/4aecc7aef0ee928a5d8e16e58ebf13c54147991e.png)  
Version 5.9.1 / 5.10.1 custom keyword log with custom keyword code. Arrow shows the place where the test fails  
 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/a/ad15a434c866927912ed69fa6bda72e7a630f427.png)

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [February 6, 2019, 4:42pm UTC](https://forum.katalon.com/t/wrong-custom-keyword-selected-by-katalon/18927/2 "2019-02-06T16:42:41Z")

</div>

Thank you for the report. Was it the only failed step in this test case?

---

<div class="post-metadata">

**Author:** ![Michail\_Timosok](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@Michail\_Timosok](https://forum.katalon.com/u/Michail_Timosok)\
**Post date:** [February 7, 2019, 9:07am UTC](https://forum.katalon.com/t/wrong-custom-keyword-selected-by-katalon/18927/3 "2019-02-07T09:07:36Z")

</div>

Yes, there was one failing step before that used mentioned custom keyword “verifyElementVisible\_2X\_fc”. I have tried disabling that step and run test again and it ‘magically’ succeeded (see screenshot). One detail: the failed action that should not fail is a last in test script in both tests.

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

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [February 7, 2020, 9:07am UTC](https://forum.katalon.com/t/wrong-custom-keyword-selected-by-katalon/18927/4 "2020-02-07T09:07:40Z")

</div>

Closed on February 7, 2020, 9:07am UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
