typescript-selenium-example
typescript-selenium-example copied to clipboard
I am getting when using findBy in my code. Could you please let me know why I am getting this.
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