The id
attribute specifies a unique id for an HTML element which can point to a style in a stylesheet, be targeted by JavaScript, and/or referenced in your QA workflows. In this article, we will cover how to add the id
attribute to inline text links within an existing custom message to allow automated QA testing of that link being selected.
Click Messages on the left-hand panel and select Custom Messages from the subsequent menu.
Use the property field in the upper right-hand corner to select a property for which you will edit a custom message.
Navigate to your custom message and click the Edit icon inline with the message name.
From the custom message builder, select a text component from the preview pane for which you wish to add an id
attribute to an inline link.
Navigate to the Settings pane and expand the Content accordion.
In the provided text space, highlight the inline text link and click the # icon in the toolbar.
Add the value for the id
attribute in the provided space and click Add ID.
Click Save Message when finished.
The id
attribute will be assigned to the inline text link. Confirm the id
attribute by surfacing your custom message on your property and use the browser console to inspect the inline text link.
Comments
0 comments