cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Use regular expression in browser monitor to match a text value is greater than 0

dariniv
Visitor

I have created a browser monitor which needs a regular expression to match the text value in DOM is greater than zero. 

 

This is the text appeared in the DOM

 

"Found 100 Messages". I want to check a condition if Found ">0" Messages then pass the validation check using regular expression

2 REPLIES 2

Ei,

 

would this regex work for you?

Found\s[1-9][0-9]*\sMessages

You can configure that by editing the Browser monitor > Recorded clickpath > Click on the Synthetic events that is loading the page with the DOM element, check the regex box and then proceed with writing the string:

 

y_buccellato_0-1665664639078.png

 

let me know if this helped. Have a great day!

 

Regards,

 

Yann

 

Hi @dariniv! Is

Featured Posts