I am using webdriverJS
and Jasmine
to perform an end-to-end testing of a web page. I would like to test if an element has class
under certain circumstances, but I would like to do it using methods from pure jasmine
.
This is the part of the code where the issue is located:
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'); }); })
Do you know if there's a way to solve this issue, or a couple of examples I could look at, without using extensions like jasmine-jquery
?
Thanks in advance for your replies!