Adding Element In Array Javascript Methods In Selenium