量角器 element.all

Protractor element.all

在 Protractor 中,以下是异步的还是向控制流中添加一些东西,或者它是惰性的并且只会在执行 click 之类的操作时针对 DOM 进行评估?

element.all(by.css('.prices-container .quidget'))

official documentation 说:

an ElementArrayFinder will not actually retrieve the elements until an action is called, which means it can be set up in helper files (i.e. page objects) before the page is available, and reused as the page changes.