You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Converting my tests to TypeScript. Test uses Protractor promise
var deferred = protractor.promise.defer();
added 'protractor' to import from protractor/globals.
Getting Typescript error: Property 'promise' does not exist on type 'Protractor'.
Using Visual Studio typescript compiler or gulp-typescript with tsconfig.json
"compilerOptions": {
"target": "es2015",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"outDir": "./built"
Are there missing typings to use protractor.promise?
Node Version: 6.3.1
Protractor Version: 4.0.2
Browser(s): ``
Operating System and Version Windows 10
Your protractor configuration file
A relevant example test
Output from running the test
Steps to reproduce the bug
The URL you are running your tests against (if relevant)
Feature Request
Reasons for adopting new feature
Is this a breaking change? (How will this affect existing functionality)
The text was updated successfully, but these errors were encountered:
I believe this is because I created a different interface and applied it to the protractor object. In the global protractor, promise actually exists but then this happened:
globals.ts
export interface Protractor {
// defined some variables that are associated with Protractor
}
export let protractor: Protractor = global['protractor'];
This should use the Protractor namespace... will be addressed.
Bug report
Converting my tests to TypeScript. Test uses Protractor promise
var deferred = protractor.promise.defer();
added 'protractor' to import from protractor/globals.
Getting Typescript error: Property 'promise' does not exist on type 'Protractor'.
Using Visual Studio typescript compiler or gulp-typescript with tsconfig.json
"compilerOptions": {
"target": "es2015",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"outDir": "./built"
Are there missing typings to use protractor.promise?
6.3.1
4.0.2
Windows 10
Feature Request
The text was updated successfully, but these errors were encountered: