-
Notifications
You must be signed in to change notification settings - Fork 2
Madcow Operations XPath Extras
gavinbunney edited this page Feb 20, 2011
·
4 revisions
Tests if the supplied xpath query has a text result in which the last part of the text matches the supplied string.
madcow:ends-with(xpathQuery, text)
madcow:ends-with(@id, 'Suburb')
Strips any non-numeric characters from the supplied xpath string.
madcow:numbers-only(xpathQuery)
madcow:numbers-only(@id)
Replaces occurances of a string, with another string within the specified xpath text. Supports Java style regular expressions.
madcow:replace-all(xpathQuery, replaceThis, withThat)
madcow:replace-all(@id, 'a', 'A) \-> replace all 'a' with 'A' within @id
- Home
- Setting Up
- Configuration
- Writing Madcow Tests
- Running Madcow Tests
- Data Parameters
- Templates
- Macros
- Disabling A Test
- Spreadsheet Scenario Testing
Madcow Operations
- Madcow Operations
- Madcow Operations - Table
- Madcow Operations - XPath Extras
- List of Madcow Operations
Extending and Customising Madcow
Reference
For Developers