TargetExtension

com.froglogic.squish.extension.TargetExtension

Interface TargetExtension — This interface can be implemented when the inspectable object is part of another object.

Synopsis

public interface com.froglogic.squish.extension.TargetExtension {

// Public Methods
  public abstract java.lang.Object getTarget(java.lang.StringBuffer item);
}

Description

This interface can be implemented when the inspectable object is part of another object. Squish will use the target object when recording a script. Optionally, when appending text to the passed StringBuffer, not waitForObject but waitForObjectItem is recorded. The inspectable for the target object must implement ItemExtension for replaying. For instance an inspectable handling text labels can implement this interface to 'promote' a mouse click on such a label to e.g. a mouse click on a table item.

See Also: com.froglogic.squish.extension.Inspectable, com.froglogic.squish.extension.ItemExtension

Methods

getTarget(StringBuffer)

public abstract java.lang.Object getTarget(java.lang.StringBuffer item);

Parameters
itemtext that acts as item with the returned object
returnthe object that should be used in the script

Return object and optional item that should be used in the script instead of the object for this Inspectable.