Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anuragchauhan1989 opened this issue Feb 10, 2021 · 1 comment

Comments

@anuragchauhan1989
Copy link

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 |   };
@yidongw
Copy link

yidongw commented Aug 2, 2021

add "emitDecoratorMetadata": true, to your tsconfig.json file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants