v6.9.2Version 5.1.24.1.3ChromeMacOS Sierra 10.12.5import { Config } from "protractor";
export let config: Config = {
framework: 'jasmine',
specs: [ 'test-afterEach.spec.js' ],
useAllAngular2AppRoots: true,
capabilities: {
browserName: 'chrome'
},
jasmineNodeOpts: {
showColors: true
}
};
import { afterEach } from "selenium-webdriver/testing";
describe('Testing afterEach', () => {
beforeAll(() => {
console.log("Before All");
});
beforeEach(() => {
console.log("Before Each");
});
afterEach(() => {
console.log("After Each");
});
afterAll(() => {
console.log("After All");
});
it('simplet test', () => {
expect(true).toBeTruthy();
})
});
Started
Before All
Before Each
FAfter AllFailures:
1) Testing afterEach simplet test
Message:
Failed: this.runnable is not a function
Stack:
TypeError: this.runnable is not a function
Ahh! There it is...
import { afterEach } from "selenium-webdriver/testing";
For some reason IntelliJ is inserting this import when I type afterEach().
Removing this line fixes the issue
Thank you! I made the exact same stupid mistake and your bug report saved me a lot of time :)
Most helpful comment
Ahh! There it is...
import { afterEach } from "selenium-webdriver/testing";For some reason IntelliJ is inserting this import when I type
afterEach().Removing this line fixes the issue