Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Shortcut for chaining css element finders gives TypeError after findElement #852

@rinatio

Description

@rinatio

Gettings an error

   Message:
     TypeError: Cannot call method 'css' of undefined

while chaining css element finders like

expect(element(by.css('html')).findElement(by.css('body')).$('div').isDisplayed()).toBe(true);

instead of

expect(element(by.css('html')).$('body').$('div').isDisplayed()).toBe(true);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions