How to select deleteFilter icon?
Home › Forums › Ask Expert › How to select deleteFilter icon?
- This topic has 1 reply, 2 voices, and was last updated 1 year, 5 months ago by Sasha ZAP.
-
AuthorPosts
-
November 17, 2022 at 2:58 pm #47265Marco MalziottiParticipant
Good morning
In the last step of the attached script, before logging out, I try to delete the set filter by selecting the deleteFilter icon.
Unfortunately the icon is not selected, but another point on the screen (see attached report).
Note that its position changes according to the length of the “Promo code” field indicated in the filter (DataTable parameter).
I also tried uncommenting line 74 but ZapTest selects further right and misses the deleteFilter icon.
Thank you.Marco Malziotti
attachements link expires at 24/11/2022
https://octospa-my.sharepoint.com/:f:/g/personal/m_malziotti_octotelematics_com/EoNqPun8_OtMtgNMUI7bllkBAf-sKEdeH71oA-pHn-cN3Q?e=dQahlDNovember 18, 2022 at 11:32 am #47276Sasha ZAPModeratorHello 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 -
AuthorPosts
- You must be logged in to reply to this topic.