note that here, I avoid reading the value through Selenium for each iteration of the loop. It was the case previously, which is a bad idea considering perf.