From 4031e6b1155ac6d34ab38c8f0f7c31454b02ffea Mon Sep 17 00:00:00 2001 From: Edgars Eglitis Date: Fri, 5 Jul 2024 16:17:02 +0300 Subject: [PATCH] fix: convert value for launch_app/terminate_app --- lib/core/device.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/device.rb b/lib/core/device.rb index ce9bcf4d..2fa81996 100644 --- a/lib/core/device.rb +++ b/lib/core/device.rb @@ -253,7 +253,7 @@ def close_app(action = nil) # Value def launch_app(action) raise "Please specify the application identifier in the Value field!" unless action.key?("Value") - app_id = action["Value"] + app_id = convert_value(action["Value"]) if @platform == "iOS" @driver.execute_script('mobile: launchApp', {'bundleId': app_id}) elsif @platform == "Android" @@ -267,7 +267,7 @@ def launch_app(action) # Value def terminate_app(action) raise "Please specify the application identifier in the Value field!" unless action.key?("Value") - app_id = action["Value"] + app_id = convert_value(action["Value"]) if @platform == "iOS" @driver.execute_script('mobile: terminateApp', {'bundleId': app_id}) elsif @platform == "Android"