title: Check if element has class only with Jasmine test framework
body: <p>I am using <code>webdriverJS</code> and <code>Jasmine</code> to perform an end-to-end testing of a web page. I would like to test if an element has <code>class</code> under certain circumstances, but I would like to do it using methods from <strong>pure</strong> <code>jasmine</code>.</p>
  
  <p>This is the part of the code where the issue is located:</p>
  
  <pre><code>describe('Header bar', function() {
      it('should show/hide elements accoding to the window position', function() {
          this.driver.executeScript('scroll(0, 1000)');
          var elemSearch = this.driver.findElements(webdriver.By.id('animatedElement, animatedElement2, animatedElement3'));
          expect(elemSearch).toContain('appear-2');
      });
  })
  </code></pre>
  
  <p>Do you know if there's a way to solve this issue, or a couple of examples I could look at, <strong>without</strong> using extensions like <code>jasmine-jquery</code>?</p>
  
  <p>Thanks in advance for your replies!</p>