Enter key press is not working in Firefox
<p>I have a scenario which involves pressing <code>Enter</code> key in the webpage. For <code>Chrome</code> my code works fine but when it comes to <code>Firefox</code> my code is not working. Please help me with an idea so that I can automate <code>Enter</code> key press in <code>Selenium</code> <code>Python</code> for <code>Firefox</code> driver. </p>

<p>Below are the codes that I have used.</p>

<pre><code>browser1.find_element_by_xpath("path").send_keys(u'\ue007')
browser1.find_element_by_xpath("path").send_keys(Keys.ENTER)
</code></pre>

<p>Try</p>

<pre><code>from selenium.webdriver.common.keys import Keys
driver.find_element_by_name("Value").send_keys(Keys.RETURN)
</code></pre>

<p>Note that RETURN = '\ue006'</p>

python selenium firefox selenium-webdriver keypress