ProtractorHarnessEnvironment
Class
deprecatedsince v13.0
A HarnessEnvironment
implementation for Protractor.
constructor
ProtractorHarnessEnvironment
@paramrawRootElement
ElementFinder
@returns
ProtractorHarnessEnvironment
forceStabilize
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
ElementFinder
Gets the root element for the document.
@returns
ElementFinder
createTestElement
TestElement
Creates a TestElement
from a raw element.
@paramelement
ElementFinder
@returns
TestElement
createEnvironment
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
HarnessLoader
Creates a HarnessLoader
rooted at the document root.
@returns
HarnessLoader
getNativeElement
ElementFinder
Gets the ElementFinder corresponding to the given TestElement.
@paramel
TestElement
@returns
ElementFinder
Jump to details