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.
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_
.
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 |
Comments
0 comments