# Is there way to get specific element count in katalon

**URL:** <https://forum.katalon.com/t/is-there-way-to-get-specific-element-count-in-katalon/11347>\
**Category:** Miscellaneous\
**Created:** [June 5, 2018, 6:42am UTC](https://forum.katalon.com/t/is-there-way-to-get-specific-element-count-in-katalon/11347 "2018-06-05T06:42:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![himal](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@himal](https://forum.katalon.com/u/himal)\
**Post date:** [June 5, 2018, 6:42am UTC](https://forum.katalon.com/t/is-there-way-to-get-specific-element-count-in-katalon/11347/1 "2018-06-05T06:42:12Z")

</div>

Is there way to get specific element count in katalon

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [June 5, 2018, 7:18am UTC](https://forum.katalon.com/t/is-there-way-to-get-specific-element-count-in-katalon/11347/2 "2018-06-05T07:18:22Z")

</div>

As for the Katalon Studio’s WebUI.\* keywords — NO.

But you can write your custom solution. The following post shows my solution:

> [@Custom Keyword: get contents of HTML elements as a list of strings](http://forum.katalon.com/t/custom-keyword-get-contents-of-html-elements-as-a-list-of-strings/11137):
>
> # Problem to solve Supposing the target web page has a list of element. [Image: https://s3.amazonaws.com/katalon-forum/editor/pa/29khpharpjtz.png] I want to verify the displayed contents against other list of strings list like this: def expectedContents = ["Tokyo CURA Healthcare Center", "Hongkong CURA Healthcare Center", "Seoul CURA Healthcare Center"] However, in the built-in keywords of Katalon Studio, there is none which returns the contents of HTML elements as List. # M…

---

<div class="post-metadata">

**Author:** ![himal](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@himal](https://forum.katalon.com/u/himal)\
**Post date:** [June 7, 2018, 8:47am UTC](https://forum.katalon.com/t/is-there-way-to-get-specific-element-count-in-katalon/11347/3 "2018-06-07T08:47:24Z")

</div>

I did it by writing selenium script in the keyword section
