Does sourceSearch support xpath?


#1

Hello I would like to check if a node contains some text and I would like to use xpath with sourceSearch, does it supports xpath?

Exemple:
sourceSearch | //div[@class=“admin_list_item_two”][contains(text(),"(CDG)")] | is_true


#2

sourceSearch searches directly in the page source code, so Xpath is not supported (it needs a DOM). But regular expressions are supported.