ProtractorHarnessEnvironment
Class
deprecatedsince v13.0
A HarnessEnvironment implementation for Protractor.
Deprecation warning
constructor
ProtractorHarnessEnvironment@paramrawRootElement
ElementFinder@returns
ProtractorHarnessEnvironmentforceStabilize
Promise<void>Flushes change detection and async tasks captured in the Angular zone. In most cases it should not be necessary to call this manually. However, there may be some edge cases where it is needed to fully flush animation events.
@returns
Promise<void>getDocumentRoot
ElementFinderGets the root element for the document.
@returns
ElementFindercreateTestElement
TestElementCreates a TestElement from a raw element.
@paramelement
ElementFinder@returns
TestElementcreateEnvironment
HarnessEnvironment<ElementFinder>Creates a HarnessLoader rooted at the given raw element.
@paramelement
ElementFinder@returns
HarnessEnvironment<ElementFinder>getAllRawElements
Promise<ElementFinder[]>Gets a list of all elements matching the given selector under this environment's root element.
@paramselector
string@returns
Promise<ElementFinder[]>loader
HarnessLoaderCreates a HarnessLoader rooted at the document root.
@returns
HarnessLoadergetNativeElement
ElementFinderGets the ElementFinder corresponding to the given TestElement.
@paramel
TestElement@returns
ElementFinderJump to details