# How to splice an xpath containing variables

**URL:** <https://forum.katalon.com/t/how-to-splice-an-xpath-containing-variables/57001>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [July 28, 2021, 1:47am UTC](https://forum.katalon.com/t/how-to-splice-an-xpath-containing-variables/57001 "2021-07-28T01:47:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [July 28, 2021, 3:44am UTC](https://forum.katalon.com/t/how-to-splice-an-xpath-containing-variables/57001/2 "2021-07-28T03:44:49Z")

</div>

Are you thinking of the below technique:

> [@Use variable in xpath](http://forum.katalon.com/t/use-variable-in-xpath/9398/5):
>
> Could you try this in the Test Object definition for a\_dashboarditems: //\*[normalize-space(text())='${dashboard}'] You need to quote the string value of ${dashboard}.

---

_[View the full topic](https://forum.katalon.com/t/how-to-splice-an-xpath-containing-variables/57001)._
