コード例 #1
0
ファイル: WebDriver.cs プロジェクト: myahk/SeleniumBasic
 private void RegisterRunningObject()
 {
     if (_comRunningObj == null)
     {
         _comRunningObj = new COMRunningObject(this, RUNNING_OBJECT_NAME);
     }
 }
コード例 #2
0
ファイル: WebDriver.cs プロジェクト: myahk/SeleniumBasic
 /// <summary>
 /// Release the resources.
 /// </summary>
 public void Dispose()
 {
     if (_comRunningObj != null)
     {
         _comRunningObj.Dispose();
         _comRunningObj = null;
     }
     if (_service != null)
     {
         _service.Dispose();
         _service = null;
     }
     if (_session != null)
     {
         _session = null;
     }
 }