how to wait until the textbox enable in watin

后端 未结 4 1562
予麋鹿
予麋鹿 2021-01-29 02:10

i have one textbox on my page on the load event textbox is disable for 10 then its enable so how to wait for 10 sec in watin. i am try to this code

IE ie = new I         


        
4条回答
  •  甜味超标
    2021-01-29 02:32

    You can just sleep the thread for a fixed amount of time in order for the test to wait:

                System.Threading.Thread.Sleep(10000);
    

    The time is in milliseconds. Maybe you would need to increase that number a little bit, but still this should work.

提交回复
热议问题