Hi,
I have defined multiple scenarios in one feature file and when I am executing them then first scenario runs fine but execption comes in on as soon as execution of second scenario starts
Exception:
TypeError: object is not a function
at C:\repository\myprotractor_project\features\config.js:42:9
this.quit = function (callback) {
driver.quit().then(function () {
callback(); --- Line 42
});
}
I removed the callback from the quit function but in that case all scenarios are getting xecuted in different chrome instances.
I want to execute all scenarios in same chrome instance.
Please share your inputs on how to resolve this issue
Hi,
I have defined multiple scenarios in one feature file and when I am executing them then first scenario runs fine but execption comes in on as soon as execution of second scenario starts
Exception:
TypeError: object is not a function
at C:\repository\myprotractor_project\features\config.js:42:9
this.quit = function (callback) {
driver.quit().then(function () {
callback(); --- Line 42
});
}
I removed the callback from the quit function but in that case all scenarios are getting xecuted in different chrome instances.
I want to execute all scenarios in same chrome instance.
Please share your inputs on how to resolve this issue