title: How can I sum up all the quantity values in a result table and compare the sum with a total value?
body: <p>There is a web page <a href="http://sfs.gov.ua" rel="nofollow noreferrer">http://sfs.gov.ua</a>
  After I type "лист"(its ukrainian) in the search field and press submit button I receive a text message wich says "5536 results have been found in total" and a table which displays how many matches have been found in a certain chapter (the first column is CHAPTER, the second is QUANTITY)
  <a href="https://i.stack.imgur.com/yS6ix.png" rel="nofollow noreferrer">screenshot</a></p>
  
  <p>My task is to sum up all quantities from the result table and compare it with a total value. I understand, that the quantity of rows in a table is dynamic as it depends on search-strings so I can not know how much rows will there be and I should in some way loop over these rows in order to retrieve the quantity values and to sum them. Please explain me how I could do that, I am newbie in SeleniumWebDriver and I would be grateful for examples.</p>