You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/test/actions.md
+27-9Lines changed: 27 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,18 @@ The following test actions handle data entities using [metadata](../metadata.md)
179
179
180
180
Learn more in [Handling a REST API response](../metadata.md#rest-response).
181
181
182
+
## Actions specifying HTML values
183
+
184
+
To use HTML in actions you must encode the HTML string using a tool. We recommend [CyberChef](https://gchq.github.io/CyberChef/#recipe=To_HTML_Entity(false,'Numeric%20entities')). Using CyberChef or a similar tool is easy. You just need to enter in your HTML string, copy the encoded result, and paste that value into your MFTF test.
185
+
186
+
For example, we want to ensure we don't see this HTML: `<h1 class="login-header">`
187
+
188
+
After passing `<h1 class="login-header">` through CyberChef we get `<h1 class="login-header">` which can be used in a test like:
0 commit comments