Python Check If String Includes Array Javascript Methods In Selenium