# Customizing xpath generation

**URL:** <https://forum.katalon.com/t/customizing-xpath-generation/15801>\
**Category:** Web Testing\
**Tags:** web-testing, katalon-studio\
**Created:** [December 20, 2018, 12:36pm UTC](https://forum.katalon.com/t/customizing-xpath-generation/15801 "2018-12-20T12:36:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [December 20, 2018, 12:48pm UTC](https://forum.katalon.com/t/customizing-xpath-generation/15801/2 "2018-12-20T12:48:40Z")

</div>

I believe starts-with is xpath 2.0 (and Katalon uses xpath 1.0) (See [Test Object with xpath selector using matches() function never works](http://forum.katalon.com/t/test-object-with-xpath-selector-using-matches-function-never-works/11822))

CSS supports “$=” – depending on how Katalon supplies the CSS setting to the host browser, you could try this in your Test Object definition:

```auto
button[id$=staticId2]

```

> [@](#):
>
> Is there a way of suppying my own xpath generator?

Doubtful but I don’t know.

---

_[View the full topic](https://forum.katalon.com/t/customizing-xpath-generation/15801)._
