| || |
any way to get the cursor type
Silktest had the Cursor.GetType()method which would return the current cursor. This was helpful in determining when a link was no longer enabled - the cursor type would change to a Pointer. Is there any way to accomplish this inquiry in XDE Tester?
Re: any way to get the cursor type
From Tech notes Rational:
Is there a way for Rational RobotJ to determine the cursor status change, e.g, when the cursor changes from an hourglass to an arrow?
For any AWT component (includes swing) you can invoke the getCursor method, which will return a TestObject back to the script process. From this TestObject the user can invoke the getType method or do a getProperty("type") to get the cursor type. Compare to the java.awt.Cursor literals and you have the basics. The trick is that this is the cursor associated with a particular component and may not be the active system cursor, which depends on where the mouse is at a particular moment. In JRE 1.4+ you can also take
advantage of the isCursorSet (cursorSet property) available on any AWT component. The getCursor will return the parents cursor if not explicitly set on a particular control and that ripples to the top where the default cursor is returned if not explicitly set.
Unfortunately, at this point, IBM Rational does not expose the cursor for HTML where the user would have to access it from a system specific function that Rational does not provide.