goenning/typescript-selenium-example

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

Opened this issue · 1 comments

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 |   };

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