Loop Through String Array Javascript Methods In Selenium