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.

© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.