Scenario Test case not recording layout group

When i try to record the scenario testing in portal its not capturing the layout group

When i click on the element which is present in layout group getting this error. Any one may tell how to overcome this issue ?

Uncaught TypeError: Cannot read properties of null (reading ‘firstElementChild’)
at C.getTargetElement (pzpega_ui_automation_scripts_12205568001!!.js:30:327)
at Q (pzpega_ui_automation_scripts_12205568001!!.js:10:2187)
at I (pzpega_ui_automation_scripts_12205568001!!.js:10:1945)
at Object.H [as buildAndSaveStep] (pzpega_ui_automation_scripts_12205568001!!.js:10:6622)
at _onBeforeEventProcessing (pzpega_ui_automation_scripts_12205568001!!.js:4:9215)
at h

Thanks

@AJAYR16863281 This sounds like a design issue/DOM or memory spike. There is a limitation to switch the tab in dynamic layout in scenario testing.

To overcome it, you can use the custom steps which can accept xpaths for click actions.

In general tabs are not recordable in scenario tests and we need to use different approach.

You can try to add a custom steps with xpaths by using this link:

Please refer to this comment: https://support.pega.com/discussion/limitations-pega-scenario-testing#comment-916846

----> If you need further help, please log a support issue via the MSP and let us know the INC id here .

Hi @MarijeSchillern

In the Test steps section on the right, next to a selected step, On clicking More > i am not seeing Add custom step in the section.

I am using pega 8.6.5 … do i need to add any latest compenent to have the ADD CUSTOM STEP option ?

Thanks,

Ajay Raghul.S

@AJAYR16863281 please log a support issue if there are no further responses from other forum users. Let us know the INC id here.