We are on Pega 8.3.2 and trying to use Scenario Test Cases for Smoke Testing application.
We are facing challenge in recording elements which are within repeating section e.g.
Suppose I'm working on a Loan application
I added my first Loan
Then I click button to add another loan
The same section is repeated to enter the values for Loan 2; just below Loan 1 (as we capture only minimum details)
BUT when I click to enter values, it says 'This element does not have unique selector and cannot be captured. Please go to your section and generate Test ID from General tab of the element properties.' and doesn't record.
Could you please suggest how to overcome this issue?
***Edited by Moderator: Pooja Gadige to add platform capability tags***
when you say repetition element. In section configuration what kind of repetition layout you have chosen.
Screen shots of section configuration would help us to understand the issue more.
Also if repetition elements(list) are having the same "data-test-id" generated in the DOM, then during recording of the secnario test case, it show the message that you have added as part of question. scenario test would be able to capture the elements on the UI if element has unique "data-test-id" generated in the DOM.
I have faced a similar issue while trying to record scenario test case for an element where we are using .pyStatusWork. On trying to record, it shows the message "This element does not have unique selector and cannot be captured. Please go to your section and generate Test ID from General tab of the element properties.".
I am facing the same issue. On Repeat Dynamic Layout the elements all have the same generated test ID. Is this just product behavour? - If so that means scenario tester cannot handle repeating UI elements?
I think I found the resolution to this - although I havent tested it yet. If you hover over a element that you want to select and automate with, there is a plus sign you can click. This brings up a detailed dialog on what automation you want to do against a element. You can select different selectors, so it may be possible to specific a unique selector here.