Returns the value of the specified identification property from the test object description.QTP-gettoproperty

Example –

  1. Sub GetTOProperty_Example()
  2. 'The following example uses the GetTOProperty method to retrieve ‘the "ProgId" property from the ActiveX test object description.
  3.  
  4. With Window("Date").ActiveX("Calendar")
  5. ProgId = .GetTOProperty("ProgId")
  6. End With
  7.  
  8. End Sub

Additional Reading

Understanding enigmatic TO and RO property