Basically I am removing elements from shopping cart and based upon number of items in shopping cart and other unknown factors JavaScript dynamically generates XPaths. I have use