Unable to load Atom ''find_element" Unable to load Atom ''find_element" selenium selenium

Unable to load Atom ''find_element"


The reason is that I used apt-get install Phantomjs to install it, but it seems that it is a not full-functional Phantomjs version installed by apt-get. So, download manually from the Phantomjs website and add the containing direction to the PATH environment variable.


These are the precise steps that worked for me:

  1. Purge old phantomjs
    apt purge phantomjs

  2. Wget the latest phantomjs (as per http://phantomjs.org/download.html)
    wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2

  3. Untar it
    tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2

  4. Moved the phantomjs executable to /usr/bin/ (may need sudo)
    cp phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/


For me it start to work after

apt install nodejs-legacy # just an alias node/nodejs to make npm install workapt purge phantomjs       # optionalynpm install -g phantomjs  # most important part because apt installation failed for me