Skip to content

Crashes When Using Protractor API. #1

@JimLynchCodes

Description

@JimLynchCodes

Hi, nice example. It still works. However, I'm confused about how you would extend this example to actually do something (like check if an element is present or has some specific text).

I thought that the whole point of using cucumber with protractor was that you can use the protractor api in the step definition methods. However, when I put things like element(by.css(.something)) it gives me errors, "element is not a function".

All of the Protractor methods cause the test runner to crash. How can I use the Protractor api in the step definition methods? Thanks.

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