GetType Function

Class

CursorClass and XmlNode.

Action

Returns the type of the current cursor or XML object.

Syntax

object.GetType()

Notes

Names for the common cursor-shapes are POINTER, INSERT, and DELAY. The following cursor shapes are also supported:

For All Windows platforms:
  • ARROW
  • CROSS
  • IBEAM
  • ICON
  • SIZE
  • SIZENESW
  • SIZENS
  • SIZENWSE
  • SIZEWE
  • UPARROW
  • WAIT

For 32-bit Windows platforms only:

  • APPSTARTING
  • HELP
  • NO
  • SIZEALL

Windows Platforms

In 32-bit Windows, when an application asks for the cursor, it sees its most recent setting, which does not necessarily match what is currently displayed. It does agree with what would be displayed if the cursor were over a window owned by the application. The GetType function asks the application, over whose window the cursor is resting, what type the cursor is. This will match visual reality, but might cause some tests to fail. If you verify the cursor type when the cursor is not over a window owned by the application under test, you might get the wrong value, so the verification fails even if the application under test sets the cursor correctly and users see the correct cursor when they move over one of the application's windows.

Examples

CURSOR CurType
CurType = Cursor.GetType()
Verify (CurType, "POINTER", "Check cursor type")

STRING sXmlType
SxmlType= Browserchild.XmlNode.GetType()
Print("XML object type: {sXmlType}")