Forums

Running Selenium

How can i switch to new system that supports selenium in headless mode. i have bene writing code but getting this error. even selenium is installed

18:46 ~ $ python -c "import selenium; print(selenium.version)" Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: module 'selenium' has no attribute 'version'

Instead of selenium.version you need to print selenium.__version__