scope_harness.PreviewWidget
- class scope_harness.PreviewWidget
This class represents a single widget of a preview, such as an image or header. The ‘data’ property is a regular python dictionary that corresponds to Scopes API VariantMap and contains actual key-values that constitute the widget. See the documentation of Unity Scopes API for more information about supported values.
- trigger((PreviewWidget)arg1, (str)arg2, (object)arg3) → AbstractView :
Trigger preview action.
Parameters: - arg2 (string) – action identifier
- arg3 (dict) – dictionary holding additional action data, typically the value of data property.
Returns: instance of PreviewView or ResultsView.
Raises: ValueError if action couldn’t be executed