title: How do you use EC.presence_of_element_located((By.ID, "myDynamicElement")) except to specify class not ID
body: <p>I am trying to use Python to web scrape a website that loads it's HTML dynamically by using embedded javascript files that render the data as a Response into the HTML. Therefore, if I use BeautifulSoup alone, I will not be able to retrieve that data that I need as my program will scrape it before the Javascript loads the data. Due to this, I am integrating the selenium library into my code, to make my program wait until a certain element is found before it scrapes the website.</p>
  
  <p>I had originally done this:</p>
  
  <pre><code>element = WebDriverWait(driver,100).until(EC.presence_of_element_located((By.ID, "tabla_evolucion")))
  </code></pre>
  
  <p>But I want to specify a class instead by doing something like:</p>
  
  <pre><code>element = WebDriverWait(driver,100).until(EC.presence_of_element_located((By.class, "ng-binding ng-scope")))  
  </code></pre>
  
  <p>Here is the rest of my code:</p>
  
  <pre><code>driver_path = 'C:/webDrivers/chromedriver.exe'
  driver = webdriver.Chrome(executable_path=driver_path)
  driver.header_overrides = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36'}
  url = "myurlthatIamscraping.com" 
  response = driver.get(url)
  html = driver.page_source
  characters = len(html)
  element = WebDriverWait(driver,100).until(EC.presence_of_element_located((By.class, "ng-binding ng-scope")))
  
  print(html)
  print(characters)
  time.sleep(10)
  driver.quit()
  </code></pre>
  
  <p>It is not working for me and I can not find the right syntax anywhere.</p>