Observation Space#
Observation Object#
In all MiniWoB++ environments, an observation is a dict
with the following fields:
Key |
Type |
Description |
---|---|---|
|
|
Task instruction string. |
|
|
Environment-specific key-value pairs extracted from the utterance;
e.g., “Click on the OK button” → |
|
|
Screenshot as RGB values for each pixel. |
|
|
Tuple of dicts, each listing properties of a visible DOM elements (see below). |
DOM Element Properties#
Each dict in dom_elements
has the following fields:
Key |
Type |
Description |
---|---|---|
|
|
Non-zero integer ID.
|
|
|
|
|
|
Left coordinate relative to the screen (can be negative). |
|
|
Top coordinate relative to the screen (can be negative). |
|
|
Element width. |
|
|
Element height. |
|
|
HTML tag.
|
|
|
Text content, which is non-empty only for leaf elements.[1] |
|
|
HTML |
|
|
HTML |
|
|
HTML |
|
|
Background color as RGBA value. |
|
|
Foreground color as RGBA value. |
|
|
Binary flags:
|