I was trying to use Locator Builder (https://codecept.io/locators/#locator-builder) and noticed that when I use withAttr, it does a equal comparison
Ex: locate('a').withAttr({href: '/order/offer/'})
Translates to:
.//a[@href = '/order/offer']
I was looking at option where withAttr translates to "contains" comparison.
Ex: .//a[contains(@href, '/order/offer')]
Since the href has a dynamic value at the end, I had to use "contains" in my xpath. Would like to know if there is a similar option with Location Builder
Note: I saw that withText does a contains comparison