selenium Action error
<p>I am trying to automate a mouse movement to an element, and I see that the method for doing so is something like: </p>

<pre><code>Actions action = new Actions(driver)
action.moveToElement(hoverElement)
</code></pre>

<p>However when I run this code I get a syntax error, and Pycharm is telling me Actions is an unreselved reference. I have also tried:</p>

<pre><code>import org.openqa.selenium.interactions.Actions
</code></pre>

<p>but I still get an error "no module named org." I am stuck, this code seems to work for everyone else, what's going wrong? Thanks.</p>

<p>In Python, it is not <code>Actions</code>, it is <a href="http://selenium-python.readthedocs.io/api.html#module-selenium.webdriver.common.action_chains" rel="nofollow"><code>ActionChains</code></a> - imported this way:</p>

<pre><code>from selenium.webdriver.common.action_chains import ActionChains
</code></pre>

<p>Sample usage:</p>

<pre><code>from selenium.webdriver.common.action_chains import ActionChains

actions = ActionChains(driver)
actions.move_to_element(elm).perform()
</code></pre>

python selenium