Javascript For Each Object In Array Javascript Methods In Selenium