5.1.6.1. Store Property/Value (General Components)
Prev | 5.1.6. Actions for storing values as variables | Next

#### 5.1.6.1. Store Property/Value (General Components)

Store Property

- Use this action to store the value of a specific property of a component.

- You can then use this value later in your test, or check whether two values you store are the same or different using the actions to Check Numeric Values and Check String Values on the Application component.

- Every component has properties (attributes). These can include the text size, the size (width/height) of the component, the color etc.

- You must first find out the name of the property you want to check, and then what value it should have. You can find out what properties and values a component has in the Object Mapping Mode (for Swing and SWT/RCP AUT's ). When you collect a component, its property information is displayed in the Properties View .

- For HTML AUTs using a Webdriver you can use this action to test CSS attributes or any other property of an element. This is how the action works on such AUTs:

  - First the attributes of the element are searched, and if the property is found there, its value is returned.

  - If the property is not yet found, the element's CSS properties are searched.

  - If the property is still not found, the HTML element's properties are searched, using `/` as a separator.

  As an example, there are two ways to check the color of an HTML element: either by checking the property `color`, or the property `style/color`. Please note that the actual value returned is strongly browser-dependent, e.g. for color, Firefox would return something like `rgb(255, 0, 0)` and Chrome `rgba(255, 0, 0, 0)`.

- Parameters:

  - Variable Name

  - Property Name

| If the property is private, it cannot be stored, the remote control component has no access to it.

Store Value (on components that show a text)

- Use this action to read the value out of a field so that you can use it as data for other Test Steps .

- Parameters:

  - Variable Name