You can easily get very close to this with Capybara: &#x27;expect(page).to have(:css, &quot;.article table th td&quot;, text: &quot; hello world &quot;)&#x27;
Save functionality but you won&#x27;t have to support that silly regex abstraction layer. If this is still not human readable enough, I would still recommend writing your own DSL on top of Capybara rather than matching to regexes like Cucumber does.