title: Attempting to click a button in Python using Selenium WebDriver (Firefox)
body: <p>I am attempting to click a button on a html page using Python and selenium web driver.</p>
  <p>This is the source code of the page <a href="http://pastebin.com/112g1Gje" rel="nofollow noreferrer">http://pastebin.com/112g1Gje</a>.</p>
  <p>I believe the relevant portion is at the end. I'm trying to click the button that says &quot;Message&quot;</p>
  <p>Normally I would do something like:</p>
  <pre><code>driver.find_element_by_id(&quot;message-modal&quot;).click()
  </code></pre>
  <p>However that doesn't work.</p>
  <p>I have tried:</p>
  <pre><code>driver.find_element_by_id(&quot;message_label&quot;).click()
  driver.execute_script('document.getElementByName(&quot; Message &quot;).click();')
  driver.execute_script('document.getElementById(&quot;message-senderId&quot;).click();')
  driver.execute_script('document.getElementById(&quot;message-    label&quot;).addEventListener(&quot;submit&quot;, function())')
  </code></pre>
  <p>...etc.</p>
  <p>All of them don't work.
  For the stars by the way I had the same issue. It was hard to click it, but I figured this part out. This worked:</p>
  <pre><code>driver.execute_script('document.getElementById(&quot;star_41094_4&quot;).checked = true;')
  </code></pre>
  <p>I think this page is switching up the numbers for the star. So that number may not work right now. But that's a separate issue. Does anybody know?</p>
  <p>EDIT: I have asked a moderator to delete this thread. I had a number of things wrong here. I am creating a new one.</p>