selenium webdriver importing Options giving me an ImportError

后端 未结 3 520
野趣味
野趣味 2021-01-21 03:33

Link to the original code I\'m trying to implement into my code.

Running Selenium WebDriver using Python with extensions (.crx files)

from selenium impor         


        
3条回答
  •  囚心锁ツ
    2021-01-21 04:07

    I fixed the problem, there was no options.py in the selenium2.7 version for some unusual reason.

    All I did was update using terminal for mac osx, but you can't just update it, you have to delete all the pre existing paths first. So go find where your selenium is installed using

    import sys
    print sys.path
    

    Find your selenium path, cd into the path using terminal and delete every folder or file with selenium attached to it.

    In your terminal, type

    sudo easy_install selenium
    

    The problem I had where this problem didn't go away was I called sudo easy_install without deleting the folder. For some reason, the hickup was gone after I deleted everything and did a fresh install.

提交回复
热议问题