Defines a criterion based on requested URL for HTML screen classes.

The URL criterion allows defining a regular expression that is applied on current page’s URL.
Matching condition: The URL criterion matches when the regular expression, defined in Regular expression property, matches the current page’s URL, i.e. if the string pattern described by the regular expression is found in the page’s URL.
Note: The URL criterion, together with the XPath criterion, are the two only possible criteria for detecting a screen class in CWC and CWI projects.

Property Type Category Description
Comment String standard Describes the object comment to include in the documentation report.
This property generally contains an explanation about the object.
Regular expression String standard Defines the regular expression to match.
This property allows defining a regular expression as a string pattern.
Notes:

• For more information about regular expression patterns, see the following page: http://www.regular-expressions.info/reference.html.
• To test regular expressions, you can use the regular expression tester at the following URL: http://www.regular-expressions.info/javascriptexample.html.
Reverse result boolean expert Defines if the criteria’s result should be reversed.
When a criteria is evaluated, it can sometimes be useful to get the opposite of the standard result (i.e. when the criteria matches, its result is false, and when it doesn’t match, its result is true). Use this property to reverse the standard result.
For example, you may define a screen class that does not contain the text “Hello” in white on black background. For that, you define a criterion matching on the text “Hello” in white on black background, and you reverse it thanks to this property.