Selenium 2 Python webdriver:
I was trying to click on an element which is hidden due to the hover effect and was looking for options to unhide and be able to select the element. To do this, I referred to some examples like below:
In java:
JavascriptExecutor je = (JavascriptExecutor) webDriver();
Another example:
browser.execute_script("document.getElementsByClassName('classname').style.display='block'")
When I ran the above example, I got the following exception:
selenium.common.exceptions.WebDriverException: Message: ''
I am not sure if I had to include any class for executing the javascript. Please let me know if there is anything iam missing.