title: NameError: name 'wait' is not defined
body: <p>I was wondering if someone can help me out. I'm attempting to make a stand alone program for web scraping and everything appears to be working except the wait command. Running the code in a source editor makes it work perfectly but when I make the stand alone it errors out and doesn't understand the code.</p>
  
  <pre><code>wait.until(EC.frame_to_be_available_and_switch_to_it(driver.find_element_by_name('AppBody')))   
  
  EC = Expected Conditions
  </code></pre>
  
  <p>Whenever I run it as a stand alone though I get the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "Stand_Alone_CAS_Automation", line 57, in &lt;module&gt;
  NameError: name 'wait' is not defined
  [17344] Failed to execute script Stand_Alone_CAS_Automation
  </code></pre>
  
  <p>Any recommendations?</p>