Question
Unable to remove specific pagelist
I tried to remove some pagelist in the following senario.
*Condition
pyWorkPage
---List(1)
---List(2)
---List(3)
---List(4)
*I would like to remove from List(2) to List4.
and I tried to specify the index number as 4 at first like below, but not working because only List(1) is deleted..I need to keep only List(1), but List(1) is removed..
1. Property-set
Index = 4
For each pages..
2. Page-remove List(Index)
3. Index = Index -1
Please give me some advice.
I really look forward to your reply.
Best regards,
***Edited by Moderator Marissa to update Platform Capability tags****
@YukiS888
Can you provide a screenshot of your implementation?
You will of course need some way of stopping your "Index = Index - 1" sequence after you've removed List(2). Your goal is to remove List(4), then remove List(3), then remove List(2), then STOP, leaving List(1) in place.