# Introducing fluentXPath

DevFeed: [Introducing fluentXPath](<https://devfeed.tech/articles/introducing-fluentxpath-27297.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201901/fluentxpath/>)

Published: 2019-01-22T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Selenium](<https://devfeed.tech/topics/selenium.md>), [Library](<https://devfeed.tech/topics/library.md>), [Java](<https://devfeed.tech/topics/java.md>)

Tags: [alternatives](<https://devfeed.tech/tags/alternatives.md>), [build](<https://devfeed.tech/tags/build.md>), [concatenation](<https://devfeed.tech/tags/concatenation.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [groovy](<https://devfeed.tech/tags/groovy.md>), [java](<https://devfeed.tech/tags/java.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [library](<https://devfeed.tech/tags/library.md>), [selenium](<https://devfeed.tech/tags/selenium.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [tests](<https://devfeed.tech/tags/tests.md>), [writing](<https://devfeed.tech/tags/writing.md>)

## AI overview

The article introduces fluentXPath, a Java library for building XPath expressions with fluent syntax instead of string concatenation. It explains that the library is only syntactic sugar, does not validate XPath expressions, and may be unnecessary in languages with string interpolation.

## Source excerpt

Some time ago I've started working on updating automated tests written in selenium with java. After working a bit with it I've noticed that from time to time constructing XPath expression can get ugly. We are writing our tests in pure java and "ugliness" usually comes from string concatenation when some extra parameters must be taken into account. I've decided to write something that might help a bit with building XPaths without string concatenation. Read more