Check If Variable Is Array Javascript Methods In Selenium