Created On:  20 May 2010
 
The following behavior has been noted in SilkTest:

1) In Internet Explorer hover the mouse over the back button and observe the tooltip “back”.
2) Press Print Screen and copy the bitmap, observe that the tool tip is captured.
3) In SilkTest execute a basic script which moves the mouse over the back button (generates the tooltip) and take a screenshot, like so:
 
[-] testcase Test1 ()
      [ ] Google1.SetActive( )
      [ ] Explorer.MoveMouse(14,11)
      [ ] Explorer.CaptureBitmap("C:\JohnBitmap") 
 

4) Observe that the captured bitmap does not include the tool tip The reason why the behaviour occurs is because SilkTest uses a different mechanism to capture the bitmap than the Windows Print Screen mechanism and as a result no Tooltips can be captured. To work around the issue you can implement the following code:
 
[-] testcase Test1 () appstate none
 [-] recording
  [ ] //Capture the bitmap to Clipboard
  [ ] Explorer.Setactive()
  [ ] sleep(1)
  [ ] Explorer.PressKeys("")
  [ ] Explorer.TypeKeys("")
  [ ] Explorer.ReleaseKeys("Alt")
  [ ]
  [ ] //Paste and Save into Microsoft Paint
  [ ] APP_Start("mspaint")
  [ ] Paint.PressKeys("")
  [ ] Paint.TypeKeys("v") //Paste
  [ ] Paint.ReleaseKeys("")
  [ ]
  [ ]
  [ ] Paint.PressKeys("")
  [ ] Paint.TypeKeys("s") //Save
  [ ] Paint.ReleaseKeys("")
  [ ]
  [ ]
  [ ] SaveAs.SetActive ()
  [ ] SaveAs.FileName.SetText ("screen_with_tooltip")
  [ ] SaveAs.SaveAsType.Select ("JPEG (*.JPG;*.JPEG;*.JPE;*.JFIF)")
  [ ] SaveAs.Save.Click ()
  [ ]