Skip to content

Commit

Permalink
Add documentation for store-text command
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Sep 23, 2022
1 parent 5468e1e commit 7e994fd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion goml-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -1162,12 +1162,24 @@ For more information about variables, read the [variables section](#variables).

```
store-property: (variable_name, "#button", "clientHeight")
assert-variable: (varible_name, 152)
assert-variable: (variable_name, 152)
store-property: (variable_name, "#button", "scrollHeight")
```

For more information about variables, read the [variables section](#variables).

#### store-text

**store-text** command stores an element's text into a variable. Examples:

```
store-property: (variable_name, "#button")
assert-variable: (variable_name, "click me")
```

For more information about variables, read the [variables section](#variables).


#### store-value

**store-value** command stores a value into a variable. The value can be a number of a string. Examples:
Expand Down

0 comments on commit 7e994fd

Please sign in to comment.