Protractor : wait for element to become invisible/hidden

后端 未结 4 658
臣服心动
臣服心动 2021-01-01 15:04

I saw other protractor related post mentioning about how to wait for an element to become visible. However, recently, I ran into an opposite use case. I wanted to wait for a

4条回答
  •  甜味超标
    2021-01-01 15:44

    From @Machtyn This should be the correct answer: var EC=protractor.ExpectedConditions; browser.wait(EC.not(EC.presenceOf(el)), someTimeoutInMilli);

提交回复
热议问题