title: Make WebElement visible via Selenium with Python with JavaScript
body: <p>I'm trying to upload a png via selenium. My Problem is, that the Input I need to use, is invisible to selenium, but not to the user. In the FAQ of Selenium they told me to use the JavascriptExcecutor like:</p>
  
  <pre><code>((JavascriptExecutor)driver).executeScript("arguments[0].style.visibility = 'visible'; arguments[0].style.height = '1px'; arguments[0].style.width = '1px'; arguments[0].style.opacity = 1", fileUploadElement);
  </code></pre>
  
  <p>I used this with C# in the past, and it worked, but now im struggeling to convert that usage to python. I would use the <code>document.getElementByName()</code> function, but the input doesn't have a Name and there are more than one on the page. What is the best way to solve that Problem. I already tried</p>
  
  <pre><code>icon = element.find_element_by_css_selector("input")
  script_befehl = icon+".style.visibility = 'visible'; "+icon+".style.height = '1px'; "+icon+".style.width = '1px'; "+icon+".style.opacity = 1
  </code></pre>
  
  <p>but that also didn't work, i'm getting a Syntax error</p>