Python Selenium Element Attributes Javascript Compiler