Adagio
6 years agoFrequent Contributor
Regular Expressions in the Checkpoint Properties
Hello ,
I'm trying to use RegEx in the checkpoint properties but I think I have syntax problems or my be not using it correctly.
Here is what I'm doing:
aqObject.CheckProperty(Aliases.browser.page.panelApp.panel.tableCont, "contentText", cmpMatches, "A Quantity\n667\nB Quantity5656\nC Quantity\n65757") Here's what I'm doing: aqObject.CheckProperty(Aliases.browser.page.panelApp.panel.tableCont, "contentText", cmpMatches, "A Quantity\n regexp:\d{3}\nB Quantity regexp:\d{4}\nC Quantity\n regexp:\d{5}")
Is there anything I should correct here. I'm not very sure. Any help would be appreciated!
Thank you
Al
Could you try:
aqObject.CheckProperty(...., cmpMatches, "A Quantity\\n\\d+\\nB Quantity\\d+\\nC Quantity\\n\\d+")