Getting Length Of Array Javascript Methods In Selenium