typescript-selenium-example icon indicating copy to clipboard operation
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.

Open anuragchauhan1989 opened this issue 5 years ago • 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 |   };

anuragchauhan1989 avatar Feb 10 '21 17:02 anuragchauhan1989

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

yidongw avatar Aug 02 '21 13:08 yidongw