Angular Loop Through Array Javascript Methods In Selenium Webdriver