Skip to content
Merged
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
4 changes: 2 additions & 2 deletions lib/core/device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ def navigate(action)
end

# closes the currently opened app and puts it in the background
def close_app(action = nil)
@driver.background_app(-1)
def close_app(_action)
@driver.execute_script('mobile: backgroundApp', {'seconds': -1})
end

# launches the app specified by the Android app package / iOS bundle ID
Expand Down