Loop Through Properties Of Object Javascript Methods In Selenium