Skip to content

I am getting when using findBy in my code. Could you please let me know why I am getting this. #8

@anuragchauhan1989

Description

@anuragchauhan1989

TypeError: type is not a constructor

  13 |         get: function() {
  14 |           const promise = (this as any).browser.findElement(selector);
> 15 |           return new type(promise, selector);
     |                  ^
  16 |         },
  17 |     });
  18 |   };

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