Selenium - Wait until element is NOT visible

后端 未结 10 2086
生来不讨喜
生来不讨喜 2021-02-02 07:29

In the code below, I attempt to wait until an element is visible:

var wait = new WebDriverWait(Driver.Instance, TimeSpan.FromSeconds(10));
wait.Until(ExpectedCon         


        
10条回答
  •  不知归路
    2021-02-02 08:13

    You can use driver.FindElements for access to non-existing items.

    wait.Until(d => d.FindElements(By.Id("processing")).Count == 0);
    

提交回复
热议问题