Question
7
Replies
532
Views
Zensar
Posted: November 21, 2018
Last activity: November 22, 2018
Set div id attribute for the Layouts
Can we set id attribute for the layouts so that when I inspect the screen on browser it should show the <div id="myID"> instead of auto generated id.
Which Pega version are you using, and what kind of layout?
You can't set the ID, but on the presentation tab for a Dyanmic Layout, if you enable "Display advanced presentation options" then you can set a CSS class that will be included in the class attribute of the DIV.
You can also set a value for "Test ID" in the general tab which will set the data-test-id attribute.