# Use Variables in Xpath

**URL:** <https://forum.robusta.ai/t/use-variables-in-xpath/444>\
**Category:** FAQ\
**Created:** [November 16, 2022, 8:32am UTC](https://forum.robusta.ai/t/use-variables-in-xpath/444 "2022-11-16T08:32:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilayda.ipar](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robusta.ai/ilayda.ipar/32/56_2.png) [@ilayda.ipar](https://forum.robusta.ai/u/ilayda.ipar)\
**Post date:** [November 16, 2022, 8:32am UTC](https://forum.robusta.ai/t/use-variables-in-xpath/444/1 "2022-11-16T08:32:04Z")

</div>

With the mouse action activity, you can make a selection by adding a variable to the xpath.

**For example,** if our variable is “today”, the used xpath could be: //\*[@id=“Calendar1″]/a[@title=”${today} "].
