title: Can I minimize chrome window while selenium is running?
body: <p>I have a project to get some information from website.
  I want to look at the process inside the chrome window, So I can't use headless browser. But sometimes I want to minimize the chrome window.</p>
  
  <p>But I found the selenium would go wrong after I minimize the chrome window manually, but sometimes not. When go wrong, exception</p>
  
  <blockquote>
    <p>element is not clickable at the point, other element will receive the click</p>
  </blockquote>
  
  <p>will be raised, or sometimes selenium just stop.</p>
  
  <p>I have searched for a long time that some people said that the chrome window should be focused on and can't be minimized by clicking '-' on the window title bar. And the alternative solution is:</p>
  
  <blockquote>
    <p>web.set_window_position(-2000,-2000)</p>
  </blockquote>
  
  <p>To make the window move out the screen.</p>
  
  <p>And someone says by simulating shortcuts to minimize the window. But I think it's the same as click '-' manually, am I wrong?</p>
  
  <p>My question is :</p>
  
  <ul>
  <li>Does selenium really requires chrome window not minimized? Why sometimes it can run selenium normally after minimized but sometimes not?</li>
  <li><p>If I use </p>
  
  <blockquote>
    <p>set_window_position(-2000,-2000)</p>
  </blockquote>
  
  <p>to move the window invisible, then I click the window icon on the bottom of os (I'm sorry that I don't know what it's called). Normally when clicked, the window will be minimized. So as for this chrome window, Will it be considered as minimized window and go wrong?</p></li>
  </ul>
  
  <p>I am really sorry for my poor English. I hope I have a clear description of my problem.</p>
  
  <p>Environment:</p>
  
  <ul>
  <li>python 3.6</li>
  <li>chrome 66.0</li>
  <li>selenium 3.11.0</li>
  <li>windows server 2012</li>
  </ul>
  
  <p>Edit to add code:</p>
  
  <pre><code>wait.WebDriverWait(driver,100000).until(EC.visibility_of_element_located((By.ID,'commMgrCompositionMessage')))
          textArea = driver.find_element_by_id('commMgrCompositionMessage')
          driver.execute_script("arguments[0].value="+"'"+modelStr+"';",textArea)
          time.sleep(1)
          wait.WebDriverWait(driver,10000).until(EC.presence_of_all_elements_located((By.CSS_SELECTOR,'#sendemail_label')))
          allSendMailLabel = driver.find_elements_by_css_selector('#sendemail')
          allSendMailLabel = allSendMailLabel[1]
          driver.execute_script("arguments[0].click();", allSendMailLabel)
  </code></pre>