Java Create Objects In Javascript Methods In Selenium