title: Change style with Selenium Python?
body: <p>I need to change the style, background-color attribute from (213, 171, 128):</p>
  <pre><code>&lt;div class=&quot;rAgBzQ&quot; style=&quot;background-color: rgb(213, 171, 128);&quot;&gt;
  &lt;/div&gt;
  </code></pre>
  <p>to (0, 0,0)</p>
  <pre><code>&lt;div class=&quot;rAgBzQ&quot; style=&quot;background-color: rgb(0, 0, 0);&quot;&gt;
  &lt;/div&gt;
  </code></pre>
  <p>Tried using the following code, with the error below. Not sure what I'm doing wrong?</p>
  <pre><code>div_to_change = driver.find_element_by_xpath(&quot;&quot;&quot;myxpath&quot;&quot;&quot;)
  driver.execute_script(&quot;arguments[0].style.background-color = 'rgb(0, 0, 0)';&quot;, div_to_change)
  </code></pre>
  <p><strong>ERROR</strong>:</p>
  <blockquote>
  <p>selenium.common.exceptions.JavascriptException: Message: javascript error: Invalid left-hand side in assignment</p>
  </blockquote>