Selenium - Wait until element is NOT visible

后端 未结 10 2087
生来不讨喜
生来不讨喜 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:18

    In the code below which is used to stop the driver for couple of seconds

    System.Threading.Thread.Sleep(20000);

提交回复
热议问题