在 Protractor 中,以下操作是异步的还是向控制流添加一些内容,或者它是惰性的并且仅在执行诸如 click
之类的操作时才针对 DOM 进行评估?
element.all(by.css('.prices-container .quidget'))
最佳答案
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.
关于javascript - Protractor element.all,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31048066/