Name

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 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.

Methods

getTarget(StringBuffer)

public java.​­lang.​­Object getTarget(java.­lang.­StringBuffer item);

Parameters

item

text that acts as item with the returned object

return

the 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.