Test Pattern Matching
open ../tests/html/test_verifications.html  

check glob (wildcard) matching

verifyValue theText *text*
verifyValue theHidden * hidden value
verifyText theSpan * span
verifySelected theSelect second *
verifySelectOptions theSelect first*,second*,third*
verifyAttribute theText@class ?oo
verifyValue theTextarea Line 1*

check regexp (wildcard) matching

verifyValue theText regexp:^[a-z ]+$
verifyValue theHidden regexp:dd
verifyNotValue theHidden regexp:DD
verifyValue theHidden regexpi:DD
verifyText theSpan regexp:span$
verifySelected theSelect regexp:second .*
verifyAttribute theText@class regexp:^f
verifyValue theText regex:^[a-z ]+$
verifyValue theHidden regex:dd
verifyText theSpan regex:span$
verifySelected theSelect regex:second .*
verifyAttribute theText@class regex:^f

check exact matching

verifyValue theText exact:the text value
verifySelected theSelect exact:second option

check a mixture of strategies

verifySelectOptions theSelect regexp:^first.*?,second option,third*