Using and Developing Locators: Summary


You should now be familiar enough with the JavaStar locator tools to be able to begin the process of developing your own locator. Each toolkit is different, so you'll need to do some research to figure out just how to implement the NonComponentLocator methods. You can refer to the klgroup, JFC, Bongo, and IFC locators (provided in the \javastar\contrib\locators directory) for examples.

If you find you need to use locators and also want to expand your tests with custom code that acts on non-components, see the chapter "Non-Component Classes" in the JavaStar API Reference. Along with the locator classes, it describes the JSNonComponent class containing convenience and event classes. You can use objects of this class to perform comparisons, get references and offsets, and send mouse events.




Send feedback to JavaStar-feedback@suntest.com
Copyright © 1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303. All rights reserved.