diff --git a/types/nightwatch/index.d.ts b/types/nightwatch/index.d.ts index 0bcb7f83b6..df47fadbd0 100644 --- a/types/nightwatch/index.d.ts +++ b/types/nightwatch/index.d.ts @@ -1851,7 +1851,7 @@ export interface Nightwatch { export interface EnhancedElementInstance { name: string; locateStrategy: string; - parent: EnhancedPageObject | EnhancedSectionInstance; + parent: EnhancedPageObject; selector: string; } @@ -1859,11 +1859,8 @@ export interface EnhancedPageObject extends SharedFunctions { api: NightwatchAPI; elements: {[name: string]: EnhancedElementInstance}; name: string; - section: {[name: string]: EnhancedSectionInstance}; } -export interface EnhancedSectionInstance extends EnhancedPageObject {} - interface SharedFunctions { /** * Clear a textarea or a text input element's value. Uses elementIdValue protocol command.