Coded UI Control.Exists. System.NullReferenceException

后端 未结 2 1995
野趣味
野趣味 2021-01-24 05:45

I want to check that window exists after some actions. I try:

 protected override Boolean IsPresent()
    {
        if (_mainWindow == null)
        {
                   


        
2条回答
  •  自闭症患者
    2021-01-24 06:09

    The problem was in version of VS2013. I have installed Update 5 and now TryFind() returns False if object not found.

提交回复
热议问题