I want to compare array I have with 4 numbers (each one with 4 digits “the end og credit card number”)
In addition I have in the web site a form with some rows indicate the credit cards the user have, in each row there is 4 digits like in my array.
I want to follow the numbers in the site (added picture) and if one of the numbers sis equal to one of the array numbers I will delete it.
Get the selector for the numbers and use a loop and use element exists inside that with a dynamic selector on the innertext…pass the currentitem to the selector as variable
I didn’t succeed. this is the selector of one of the numbers (Add in picture) while the idx number is actually present the number in each row (what I add is the number in the 6th row).
Use element exist with indicating that element having number in the screen and change it to make it dynamic [ check inner text attrubute/aaname] it would have the text value.
Then if it exists, u can click delete button corresponding to the number using anchor base or using css selector itself.
Also,
Kindly show the screenshot of UIExplorer to get the idea of attributes which the element is having?
You shoudl have innertext as well…Open the selector in ui explorer …you cna find the option in top menu…select a selector which changes with changing only the innertext…Use the right top and the center top menu
@mironb
I hope aaname attribute has the 4 digit number which u need, instead of that fixed value, use the variable which have the 4 digit u need to make it dynamic selector