Please don't do this!
Dynamically generated IFRAMEs can complicate testing for the page.
Click on the Go buttons in the order they are numbered so that all frames turn green.
To my knowledge, there is no trivial way to write a Selenium script for this page without the use of complicated JavaScript evaluation. Using WebDriver may work too but with complex logic.