Usage of Javascript with Python Selenium Testing