Test automation for first layer message actions

Testing platforms (like Selenium) enable your organization to automate and test end-user actions in your CMP message such as selecting an Accept All or Reject All button. In this article, we will cover how to identify the relevant element(s) of your first layer message so that you can take an action on the element within your automated testing platform. 


Identify first layer message button class

Every button that is added to your Sourcepoint first layer message has an "action class" which denotes the Choice Option assigned to the button in the first layer message builder.

Screenshot 2024-09-18 at 10.53.32 AM.png

To find the action class for any button open the developer console of your browser and inspect a button in the first layer message. The action class for the button will begin with sp_choice_type_.

Screenshot 2024-09-18 at 11.04.19 AM.png


Common first layer message button classes 

For your convenience, we have compiled popular action classes for buttons that can be used in your first layer message.

Choice Option Class
Accept All sp_choice_type_11
Reject All sp_choice_type_13
Show Privacy Manager sp_choice_type_12
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.