Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ Roles are ALWAYS defined at the begining of the cases. You have to write always
14. [handle_ios_alert](#handle_ios_alert)
15. [notifications](#notifications)
16. [back](#back)
17. [update_settings](#update_settings)

## API

Expand Down Expand Up @@ -836,6 +837,14 @@ Works as pressing the button `back` on the phone to go to the previous screen.
- Type: back
Role: role1 (Optional. if not specified will use the first one defined in the case Roles)

### <a id="update_settings"></a>update_settings

Updates Appium driver settings. The value must be provided as a JSON object. JSON keys can be optionally placed in quotes.

- Type: update_settings
Role: role1 (Optional. if not specified will use the first one defined in the case Roles)
Value: { waitForIdleTimeout: 10, 'allowInvisibleElements': true, "elementResponseAttributes": "name" }

## API

### <a id="get_call"></a>get_call
Expand Down
7 changes: 7 additions & 0 deletions lib/core/device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,13 @@ def terminate_app(action)
end
end

# updates Appium driver settings
# Accepts:
# Value
def update_settings(action)
@driver.update_settings(convert_yaml(action["Value"]))
end

# starts recording test execution. Whole desktop is recorded if 'udid' is not
# set.
# Accepts:
Expand Down