No module named selenium.webdriver.common.action_chains

2.1k Views Asked by At

I am stuck with the issue where I am thrown the following Selenium error.

Traceback (most recent call last):
  File "quickstart.py", line 4, in <module>
    from quorapy import QuoraPy
  File "C:\Users\Farath Shba\Downloads\QuoraPy-master\quorapy\__init__.py", line 1, in <module>
    from .quorapy import QuoraPy
  File "C:\Users\Farath Shba\Downloads\QuoraPy-master\quorapy\quorapy.py", line 8, in <module>
    from .login_util import login_user
  File "C:\Users\Farath Shba\Downloads\QuoraPy-master\quorapy\login_util.py", line 5, in <module>
    from selenium.webdriver.common.action_chains import ActionChains
ImportError: No module named selenium.webdriver.common.action_chains

Can someone help me out from this error, please?

PS: This is from the Github Repo, https://github.com/socialbotspy/QuoraPy where I am trying to run the python script, quickstart.py.

1

There are 1 best solutions below

6
On

Are you importing it this way below? It works for me:

from selenium.webdriver.common.action_chains import ActionChains

You can add as AC at end to be able to call action chains with just AC:

from selenium.webdriver.common.action_chains import ActionChains as AC

Example:

AC(driver).[actions here]