title: QTP : How do we capture the tool tip text displayed on doing mouseover on a radiobutton?
body: <p>I am trying to capture the text displayed on doing mouse over on a radio button with Descriptive Programming using <code>GetROProperty</code>. If I spy the tool tip text displayed, it is recognizing as <code>WebElement</code>. I tried executing the below code</p>
  
  <pre><code>setToolTip=Browser(strBrowser).Page(strPage).WebElement(strwebElement).GetROProperty("innertext")
  MsgBox ToolTip
  </code></pre>
  
  <p>but i am getting the below error message </p>
  
  <p><strong>"Cannot identify the object "[WebElement] of (of class WebElement.Verify that this Object's properties match an object currently displayed in your application".</strong></p>
  
  <p>If I run the same code by adding the objects to Object Repository I am able to capture the tool tip text using <code>GetROProperty</code></p>
  
  <p>Is there any other property other than <code>GetROProperty</code> so that I can capture the tool tip text displayed or is there any other way?</p>
  
  <p>Please suggest.</p>
  
  <p>My complete code looks like this. I have also tried the "object.tile" as suggested but still the same Issue.</p>
  
  <pre><code>Browser(strBrowser).Page(strPage).WebRadioGroup(strLogicalName).Select "true"
  Browser(strBrowser).Page(strPage).WebRadioGroup(strLogicalName).FireEvent "onmouseover"
  set ToolTip=Browser(strBrowser).Page(strPage).WebElement("strWebElement").Object.title
  
  MsgBox ToolTip
  </code></pre>
  
  <p>Please suggest</p>
  
  <p>Thanks.</p>