Check If Array Contains String Javascript Methods In Selenium