(Jul-02-2020, 09:50 AM)ABVSVL Wrote: how to check the amount of goods and add up all the goods to see if the total price is changing?This is what you should try yourself by using the code hint i have given,that how it's work here
So to take it step further.
span_tag = browser.find_elements_by_xpath('//span[@class="basket-item__price-total_discount js__total-price"]') #print(span_tag) total = [] for tag in span_tag: total.append(int(tag.text.split()[0])) print(sum(total))
Output:5194