Skip to content

Exception - object undefined coming in when there are multiple scenarios in one feature file #31

@neerjain

Description

@neerjain

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions