If I were trying to solve this, I'd look at Seleniumu00a0 for the browser automation. Because I'm a Python guy, I'd use the Python support and would use itertools.product to generate all the combinations.