Hello Marco,
I still could not access the website you are testing, but I did the following script updates:
1. I’ve added an Area object around the whole filtering section and enabled back Line #74 – This will set again the lblFilterPromoCode object with the “btnText” value’s text:
Application(“SystemConsole”).View(“SM-PromoConfig-Filtered”).Object(“lblActiveFitters”).Area(“AreaPromoCode”).Object(“lblFilterPromoCode”).SetProperty “Text”, btnText
2. I’ve added at Line #87 the search for the lblFilterPromoCode inside the boundaries of the AreaPromoCode Area object:
Application(“SystemConsole”).View(“SM-PromoConfig-Filtered”).Object(“lblActiveFitters”).Area(“AreaPromoCode”).Object(“lblFilterPromoCode”).Exist
3. Once the lblFilterPromoCode object was created and found the deleteFilter object supposes to shift its coordinates based on the new updated lblFilterPromoCode object, and then the test will click on the found deleteFilter object.
4. I’ve uploaded the new updated test to this shared directory:
https://drive.google.com/file/d/1Nc1FXa4xDU6ixMpjflbnPGHIf6jyZfp3/view?usp=sharing
5. If the above will not work you’ll need to check different Area object solutions in order to capture the deleteFilter object.
I hope this will help.
Thanks,
ZAPTEST Team